home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 February: Tool Chest / Apple Developer CD Series Tool Chest February 1996 (Apple Computer)(1996).iso / Tool Chest / Interfaces & Libraries / Interfaces / PInterfaces / GXPrinting.p < prev    next >
Encoding:
Text File  |  1995-07-06  |  115.4 KB  |  3,491 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        GXPrinting.p
  3.  
  4.      Contains:    This file contains all printing APIs except for driver/extension specific ones.
  5.  
  6.      Version:    Technology:    Quickdraw GX 1.1
  7.                  Package:    Universal Interfaces 2.1 in “MPW Latest” on ETO #18
  8.  
  9.      Copyright:    © 1984-1995 by Apple Computer, Inc.
  10.                  All rights reserved.
  11.  
  12.      Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13.                  stack.  Include the file and version information (from above)
  14.                  in the problem description and send to:
  15.                      Internet:    apple.bugs@applelink.apple.com
  16.                      AppleLink:    APPLE.BUGS
  17.  
  18. }
  19.  
  20. {$IFC UNDEFINED UsingIncludes}
  21. {$SETC UsingIncludes := 0}
  22. {$ENDC}
  23.  
  24. {$IFC NOT UsingIncludes}
  25.  UNIT GXPrinting;
  26.  INTERFACE
  27. {$ENDC}
  28.  
  29. {$IFC UNDEFINED __GXPRINTING__}
  30. {$SETC __GXPRINTING__ := 1}
  31.  
  32. {$I+}
  33. {$SETC GXPrintingIncludes := UsingIncludes}
  34. {$SETC UsingIncludes := 1}
  35.  
  36.  
  37. {$IFC UNDEFINED __COLLECTIONS__}
  38. {$I Collections.p}
  39. {$ENDC}
  40. {    Types.p                                                        }
  41. {        ConditionalMacros.p                                        }
  42. {    MixedMode.p                                                    }
  43.  
  44. {$IFC UNDEFINED __CONDITIONALMACROS__}
  45. {$I ConditionalMacros.p}
  46. {$ENDC}
  47.  
  48. {$IFC UNDEFINED __DIALOGS__}
  49. {$I Dialogs.p}
  50. {$ENDC}
  51. {    Errors.p                                                    }
  52. {    Memory.p                                                    }
  53. {    Menus.p                                                        }
  54. {        Quickdraw.p                                                }
  55. {            QuickdrawText.p                                        }
  56. {    Controls.p                                                    }
  57. {    Windows.p                                                    }
  58. {        Events.p                                                }
  59. {            OSUtils.p                                            }
  60. {    TextEdit.p                                                    }
  61.  
  62. {$IFC UNDEFINED __ERRORS__}
  63. {$I Errors.p}
  64. {$ENDC}
  65.  
  66. {$IFC UNDEFINED __FILES__}
  67. {$I Files.p}
  68. {$ENDC}
  69. {    Finder.p                                                    }
  70.  
  71. {$IFC UNDEFINED __GXFONTS__}
  72. {$I GXFonts.p}
  73. {$ENDC}
  74. {    GXMath.p                                                    }
  75. {        FixMath.p                                                }
  76. {    GXTypes.p                                                    }
  77. {    ScalerTypes.p                                                }
  78. {        SFNTTypes.p                                                }
  79.  
  80. {$IFC UNDEFINED __GXMATH__}
  81. {$I GXMath.p}
  82. {$ENDC}
  83.  
  84. {$IFC UNDEFINED __GXTYPES__}
  85. {$I GXTypes.p}
  86. {$ENDC}
  87.  
  88. {$IFC UNDEFINED __LISTS__}
  89. {$I Lists.p}
  90. {$ENDC}
  91.  
  92. {$IFC UNDEFINED __MENUS__}
  93. {$I Menus.p}
  94. {$ENDC}
  95.  
  96. {$IFC UNDEFINED __GXMESSAGES__}
  97. {$I GXMessages.p}
  98. {$ENDC}
  99.  
  100. {$IFC UNDEFINED __PRINTING__}
  101. {$I Printing.p}
  102. {$ENDC}
  103.  
  104. {$IFC UNDEFINED __QUICKDRAW__}
  105. {$I Quickdraw.p}
  106. {$ENDC}
  107.  
  108. {$PUSH}
  109. {$ALIGN MAC68K}
  110. {$LibExport+}
  111.  
  112. CONST
  113.     gestaltGXPrintingMgrVersion    = 'pmgr';
  114.     gestaltGXVersion            = 'qdgx';
  115.  
  116.     
  117. TYPE
  118.     gxOwnerSignature = LONGINT;
  119.  
  120. {$IFC OLDROUTINENAMES }
  121.     Signature = LONGINT;
  122.  
  123. {$ENDC}
  124.     gxPrinter = Ptr;
  125.  
  126.     gxJob = Ptr;
  127.  
  128.     gxFormat = Ptr;
  129.  
  130.     gxPaperType = Ptr;
  131.  
  132.     gxPrintFile = Ptr;
  133.  
  134.     gxLoopStatus = BOOLEAN;
  135.  
  136.  
  137. CONST
  138.     gxStopLooping                = false;
  139.     gxKeepLooping                = true;
  140.  
  141. TYPE
  142.     gxViewDeviceProcPtr = ProcPtr;  { FUNCTION gxViewDevice(aViewDevice: gxViewDevice; refCon: UNIV Ptr): gxLoopStatus; }
  143.     gxViewDeviceUPP = UniversalProcPtr;
  144.  
  145. CONST
  146.     uppgxViewDeviceProcInfo = $000003D0; { FUNCTION (4 byte param, 4 byte param): 1 byte result; }
  147.  
  148. FUNCTION NewgxViewDeviceProc(userRoutine: gxViewDeviceProcPtr): gxViewDeviceUPP;
  149.     {$IFC NOT GENERATINGCFM }
  150.     INLINE $2E9F;
  151.     {$ENDC}
  152.  
  153. FUNCTION CallgxViewDeviceProc(aViewDevice: gxViewDevice; refCon: UNIV Ptr; userRoutine: gxViewDeviceUPP): gxLoopStatus;
  154.     {$IFC NOT GENERATINGCFM}
  155.     INLINE $205F, $4E90;
  156.     {$ENDC}
  157. TYPE
  158.     gxFormatProcPtr = ProcPtr;  { FUNCTION gxFormat(aFormat: gxFormat; refCon: UNIV Ptr): gxLoopStatus; }
  159.     gxFormatUPP = UniversalProcPtr;
  160.  
  161. CONST
  162.     uppgxFormatProcInfo = $000003D0; { FUNCTION (4 byte param, 4 byte param): 1 byte result; }
  163.  
  164. FUNCTION NewgxFormatProc(userRoutine: gxFormatProcPtr): gxFormatUPP;
  165.     {$IFC NOT GENERATINGCFM }
  166.     INLINE $2E9F;
  167.     {$ENDC}
  168.  
  169. FUNCTION CallgxFormatProc(aFormat: gxFormat; refCon: UNIV Ptr; userRoutine: gxFormatUPP): gxLoopStatus;
  170.     {$IFC NOT GENERATINGCFM}
  171.     INLINE $205F, $4E90;
  172.     {$ENDC}
  173. TYPE
  174.     gxPaperTypeProcPtr = ProcPtr;  { FUNCTION gxPaperType(aPapertype: gxPaperType; refCon: UNIV Ptr): gxLoopStatus; }
  175.     gxPaperTypeUPP = UniversalProcPtr;
  176.  
  177. CONST
  178.     uppgxPaperTypeProcInfo = $000003D0; { FUNCTION (4 byte param, 4 byte param): 1 byte result; }
  179.  
  180. FUNCTION NewgxPaperTypeProc(userRoutine: gxPaperTypeProcPtr): gxPaperTypeUPP;
  181.     {$IFC NOT GENERATINGCFM }
  182.     INLINE $2E9F;
  183.     {$ENDC}
  184.  
  185. FUNCTION CallgxPaperTypeProc(aPapertype: gxPaperType; refCon: UNIV Ptr; userRoutine: gxPaperTypeUPP): gxLoopStatus;
  186.     {$IFC NOT GENERATINGCFM}
  187.     INLINE $205F, $4E90;
  188.     {$ENDC}
  189. TYPE
  190.     gxPrintingFlattenProcPtr = ProcPtr;  { FUNCTION gxPrintingFlatten(size: LONGINT; data: UNIV Ptr; refCon: UNIV Ptr): OSErr; }
  191.     gxPrintingFlattenUPP = UniversalProcPtr;
  192.  
  193. CONST
  194.     uppgxPrintingFlattenProcInfo = $00000FE0; { FUNCTION (4 byte param, 4 byte param, 4 byte param): 2 byte result; }
  195.  
  196. FUNCTION NewgxPrintingFlattenProc(userRoutine: gxPrintingFlattenProcPtr): gxPrintingFlattenUPP;
  197.     {$IFC NOT GENERATINGCFM }
  198.     INLINE $2E9F;
  199.     {$ENDC}
  200.  
  201. FUNCTION CallgxPrintingFlattenProc(size: LONGINT; data: UNIV Ptr; refCon: UNIV Ptr; userRoutine: gxPrintingFlattenUPP): OSErr;
  202.     {$IFC NOT GENERATINGCFM}
  203.     INLINE $205F, $4E90;
  204.     {$ENDC}
  205.     
  206. TYPE
  207.     gxViewDeviceProc = gxViewDeviceUPP;
  208.  
  209.     gxFormatProc = gxFormatUPP;
  210.  
  211.     gxPaperTypeProc = gxPaperTypeUPP;
  212.  
  213.     gxPrintingFlattenProc = gxPrintingFlattenUPP;
  214.  
  215. {
  216.     The following constants are used to set collection item flags in printing
  217.     collections. The Printing Manager purges certain items whenever a driver
  218.     switch occurs. If the formatting driver changes, all items marked as
  219.     gxVolatileFormattingDriverCategory will be purged.  If the output driver
  220.     changes, all items marked as gxVolatileOutputDriverCategory will be purged.
  221.     Note that to prevent items from being flattened when GXFlattenJob is called,
  222.     you should unset the collectionPersistenceBit (defined in Collections.h),
  223.     which is on by default.
  224. }
  225. { Structure stored in collection items' user attribute bits }
  226.     gxCollectionCategory = INTEGER;
  227.  
  228.  
  229. CONST
  230.     gxNoCollectionCategory        = $0000;
  231.     gxOutputDriverCategory        = $0001;
  232.     gxFormattingDriverCategory    = $0002;
  233.     gxDriverVolatileCategory    = $0004;
  234.     gxVolatileOutputDriverCategory = gxOutputDriverCategory + gxDriverVolatileCategory;
  235.     gxVolatileFormattingDriverCategory = gxFormattingDriverCategory + gxDriverVolatileCategory;
  236.  
  237. {
  238.  
  239.     >>>>>> JOB COLLECTION ITEMS <<<<<<
  240.  
  241. }
  242. { gxJobInfo COLLECTION ITEM }
  243.     gxJobTag                    = 'job ';
  244.  
  245.  
  246. TYPE
  247.     gxJobInfo = RECORD
  248.         numPages:                LONGINT;                                { Number of pages in the document }
  249.         priority:                LONGINT;                                { Priority of this job plus "is it on hold?" }
  250.         timeToPrint:            LONGINT;                                { When to print job, if scheduled }
  251.         jobTimeout:                LONGINT;                                { Timeout value, in ticks }
  252.         firstPageToPrint:        LONGINT;                                { Start printing from this page }
  253.         jobAlert:                INTEGER;                                { How to alert user when printing }
  254.         appName:                Str31;                                    { Which application printed the document }
  255.         documentName:            Str31;                                    { The name of the document being printed }
  256.         userName:                Str31;                                    { The owner name of the machine that printed the document }
  257.     END;
  258.  
  259. { priority field constants }
  260.  
  261. CONST
  262.     gxPrintJobHoldingBit        = $00001000;                    { This bit is set if the job is on hold. }
  263.  
  264.     gxPrintJobUrgent            = $00000001;
  265.     gxPrintJobAtTime            = $00000002;
  266.     gxPrintJobASAP                = $00000003;
  267.     gxPrintJobHolding            = 0+(gxPrintJobHoldingBit + gxPrintJobASAP);
  268.     gxPrintJobHoldingAtTime        = 0+(gxPrintJobHoldingBit + gxPrintJobAtTime);
  269.     gxPrintJobHoldingUrgent        = 0+(gxPrintJobHoldingBit + gxPrintJobUrgent);
  270.  
  271. { jobAlert field constants }
  272.     gxNoPrintTimeAlert            = 0;                            { Don't alert user when we print }
  273.     gxAlertBefore                = 1;                            { Alert user before we print }
  274.     gxAlertAfter                = 2;                            { Alert user after we print }
  275.     gxAlertBothTimes            = 3;                            { Alert before and after we print }
  276.  
  277. { jobTimeout field constants }
  278.     gxThirtySeconds                = 1800;                            { 30 seconds in ticks }
  279.     gxTwoMinutes                = 7200;                            { 2 minutes in ticks }
  280.  
  281. { gxCollationTag COLLECTION ITEM }
  282.     gxCollationTag                = 'sort';
  283.  
  284.  
  285. TYPE
  286.     gxCollationInfo = RECORD
  287.         collation:                BOOLEAN;                                { True if copies are to be collated }
  288.         padByte:                CHAR;
  289.     END;
  290.  
  291. { gxCopiesTag COLLECTION ITEM }
  292.  
  293. CONST
  294.     gxCopiesTag                    = 'copy';
  295.  
  296.  
  297. TYPE
  298.     gxCopiesInfo = RECORD
  299.         copies:                    LONGINT;                                { Number of copies of the document to print }
  300.     END;
  301.  
  302. { gxPageRangeTag COLLECTION ITEM }
  303.  
  304. CONST
  305.     gxPageRangeTag                = 'rang';
  306.  
  307.  
  308. TYPE
  309.     gxSimplePageRangeInfo = RECORD
  310.         optionChosen:            CHAR;                                    { From options listed below }
  311.         printAll:                BOOLEAN;                                { True if user wants to print all pages }
  312.         fromPage:                LONGINT;                                { For gxDefaultPageRange, current value }
  313.         toPage:                    LONGINT;                                { For gxDefaultPageRange, current value }
  314.     END;
  315.  
  316.     gxPageRangeInfo = RECORD
  317.         simpleRange:            gxSimplePageRangeInfo;                    { Info which will be returned for GetJobPageRange }
  318.         fromString:                Str31;                                    { For gxCustomizePageRange, current value }
  319.         toString:                Str31;                                    { For gxCustomizePageRange, current value }
  320.         minFromPage:            LONGINT;                                { For gxDefaultPageRange, we parse with this, ignored if nil }
  321.         maxToPage:                LONGINT;                                { For gxDefaultPageRange, we parse with this, ignored if nil }
  322.         replaceString:            ARRAY [0..0] OF CHAR;                    { For gxReplacePageRange, string to display }
  323.     END;
  324.  
  325. { optionChosen field constants for SimplePageRangeInfo }
  326.  
  327. CONST
  328.     gxDefaultPageRange            = 0;
  329.     gxReplacePageRange            = 1;
  330.     gxCustomizePageRange        = 2;
  331.  
  332. { gxQualityTag COLLECTION ITEM }
  333.     gxQualityTag                = 'qual';
  334.  
  335.  
  336. TYPE
  337.     gxQualityInfo = RECORD
  338.         disableQuality:            BOOLEAN;                                { True to disable standard quality controls }
  339.         padByte:                CHAR;
  340.         defaultQuality:            INTEGER;                                { The default quality value }
  341.         currentQuality:            INTEGER;                                { The current quality value }
  342.         qualityCount:            INTEGER;                                { The number of quality menu items in popup menu }
  343.         qualityNames:            ARRAY [0..0] OF CHAR;                    { An array of packed pascal strings for popup menu titles }
  344.     END;
  345.  
  346. { gxFileDestinationTag COLLECTION ITEM }
  347.  
  348. CONST
  349.     gxFileDestinationTag        = 'dest';
  350.  
  351.  
  352. TYPE
  353.     gxFileDestinationInfo = RECORD
  354.         toFile:                    BOOLEAN;                                { True if destination is a file }
  355.         padByte:                CHAR;
  356.     END;
  357.  
  358. { gxFileLocationTag COLLECTION ITEM }
  359.  
  360. CONST
  361.     gxFileLocationTag            = 'floc';
  362.  
  363.  
  364. TYPE
  365.     gxFileLocationInfo = RECORD
  366.         fileSpec:                FSSpec;                                    { Location to put file, if destination is file }
  367.     END;
  368.  
  369. { gxFileFormatTag COLLECTION ITEM }
  370.  
  371. CONST
  372.     gxFileFormatTag                = 'ffmt';
  373.  
  374.  
  375. TYPE
  376.     gxFileFormatInfo = RECORD
  377.         fileFormatName:            Str31;                                    { Name of file format (e.g. "PostScript") if destination is file }
  378.     END;
  379.  
  380. { gxFileFontsTag COLLECTION ITEM }
  381.  
  382. CONST
  383.     gxFileFontsTag                = 'incf';
  384.  
  385.  
  386. TYPE
  387.     gxFileFontsInfo = RECORD
  388.         includeFonts:            CHAR;                                    { Which fonts to include, if destination is file }
  389.         padByte:                CHAR;
  390.     END;
  391.  
  392. { includeFonts field constants }
  393.  
  394. CONST
  395.     gxIncludeNoFonts            = 1;                            { Include no fonts }
  396.     gxIncludeAllFonts            = 2;                            { Include all fonts }
  397.     gxIncludeNonStandardFonts    = 3;                            { Include only fonts that aren't in the standard LW set }
  398.  
  399. { gxPaperFeedTag COLLECTION ITEM }
  400.     gxPaperFeedTag                = 'feed';
  401.  
  402.  
  403. TYPE
  404.     gxPaperFeedInfo = RECORD
  405.         autoFeed:                BOOLEAN;                                { True if automatic feed, false if manual }
  406.         padByte:                CHAR;
  407.     END;
  408.  
  409. { gxTrayFeedTag COLLECTION ITEM }
  410.  
  411. CONST
  412.     gxTrayFeedTag                = 'tray';
  413.  
  414.     
  415. TYPE
  416.     gxTrayIndex = LONGINT;
  417.  
  418.     gxTrayFeedInfo = RECORD
  419.         feedTrayIndex:            gxTrayIndex;                            { Tray to feed paper from }
  420.         manualFeedThisPage:        BOOLEAN;                                { Signals manual feeding for the page }
  421.         padByte:                CHAR;
  422.     END;
  423.  
  424. { gxManualFeedTag COLLECTION ITEM }
  425.  
  426. CONST
  427.     gxManualFeedTag                = 'manf';
  428.  
  429.  
  430. TYPE
  431.     gxManualFeedInfo = RECORD
  432.         numPaperTypeNames:        LONGINT;                                { Number of paperTypes to manually feed }
  433.         paperTypeNames:            ARRAY [0..0] OF Str31;                    { Array of names of paperTypes to manually feed }
  434.     END;
  435.  
  436. { gxNormalMappingTag COLLECTION ITEM }
  437.  
  438. CONST
  439.     gxNormalMappingTag            = 'nmap';
  440.  
  441.  
  442. TYPE
  443.     gxNormalMappingInfo = RECORD
  444.         normalPaperMapping:        BOOLEAN;                                { True if not overriding normal paper mapping }
  445.         padByte:                CHAR;
  446.     END;
  447.  
  448. { gxSpecialMappingTag COLLECTION ITEM }
  449.  
  450. CONST
  451.     gxSpecialMappingTag            = 'smap';
  452.  
  453.  
  454. TYPE
  455.     gxSpecialMappingInfo = RECORD
  456.         specialMapping:            CHAR;                                    { Enumerated redirect, scale or tile setting }
  457.         padByte:                CHAR;
  458.     END;
  459.  
  460. { specialMapping field constants }
  461.  
  462. CONST
  463.     gxRedirectPages                = 1;                            { Redirect pages to a papertype and clip if necessary }
  464.     gxScalePages                = 2;                            { Scale pages if necessary }
  465.     gxTilePages                    = 3;                            { Tile pages if necessary }
  466.  
  467. { gxTrayMappingTag COLLECTION ITEM }
  468.     gxTrayMappingTag            = 'tmap';
  469.  
  470.  
  471. TYPE
  472.     gxTrayMappingInfo = RECORD
  473.         mapPaperToTray:            gxTrayIndex;                            { Tray to map all paper to }
  474.     END;
  475.  
  476. { gxPaperMappingTag COLLECTION ITEM }
  477. { This collection item contains a flattened paper type resource }
  478.  
  479. CONST
  480.     gxPaperMappingTag            = 'pmap';
  481.  
  482. { gxPrintPanelTag COLLECTION ITEM }
  483.     gxPrintPanelTag                = 'ppan';
  484.  
  485.  
  486. TYPE
  487.     gxPrintPanelInfo = RECORD
  488.         startPanelName:            Str31;                                    { Name of starting panel in Print dialog }
  489.     END;
  490.  
  491. { gxFormatPanelTag COLLECTION ITEM }
  492.  
  493. CONST
  494.     gxFormatPanelTag            = 'fpan';
  495.  
  496.  
  497. TYPE
  498.     gxFormatPanelInfo = RECORD
  499.         startPanelName:            Str31;                                    { Name of starting panel in Format dialog }
  500.     END;
  501.  
  502. { gxTranslatedDocumentTag COLLECTION ITEM }
  503.  
  504. CONST
  505.     gxTranslatedDocumentTag        = 'trns';
  506.  
  507.  
  508. TYPE
  509.     gxTranslatedDocumentInfo = RECORD
  510.         translatorInfo:            LONGINT;                                { Information from the translation process }
  511.     END;
  512.  
  513. {
  514.  
  515.     >>>>>> FORMAT COLLECTION ITEMS <<<<<<
  516.  
  517. }
  518. { gxPaperTypeLockTag COLLECTION ITEM }
  519.  
  520. CONST
  521.     gxPaperTypeLockTag            = 'ptlk';
  522.  
  523.  
  524. TYPE
  525.     gxPaperTypeLockInfo = RECORD
  526.         paperTypeLocked:        BOOLEAN;                                { True if format's paperType is locked }
  527.         padByte:                CHAR;
  528.     END;
  529.  
  530. { gxOrientationTag COLLECTION ITEM }
  531.  
  532. CONST
  533.     gxOrientationTag            = 'layo';
  534.  
  535.  
  536. TYPE
  537.     gxOrientationInfo = RECORD
  538.         orientation:            CHAR;                                    { An enumerated orientation value }
  539.         padByte:                CHAR;
  540.     END;
  541.  
  542. { orientation field constants }
  543.  
  544. CONST
  545.     gxPortraitLayout            = 0;                            { Portrait }
  546.     gxLandscapeLayout            = 1;                            { Landscape }
  547.     gxRotatedPortraitLayout        = 2;                            { Portrait, rotated 180° }
  548.     gxRotatedLandscapeLayout    = 3;                            { Landscape, rotated 180°  }
  549.  
  550. { gxScalingTag COLLECTION ITEM }
  551.     gxScalingTag                = 'scal';
  552.  
  553.  
  554. TYPE
  555.     gxScalingInfo = RECORD
  556.         horizontalScaleFactor:    Fixed;                                    { Current horizontal scaling factor }
  557.         verticalScaleFactor:    Fixed;                                    { Current vertical scaling factor }
  558.         minScaling:                INTEGER;                                { Minimum scaling allowed }
  559.         maxScaling:                INTEGER;                                { Maximum scaling allowed }
  560.     END;
  561.  
  562. { gxDirectModeTag COLLECTION ITEM }
  563.  
  564. CONST
  565.     gxDirectModeTag                = 'dirm';
  566.  
  567.  
  568. TYPE
  569.     gxDirectModeInfo = RECORD
  570.         directModeOn:            BOOLEAN;                                { True if a direct mode is enabled }
  571.         padByte:                CHAR;
  572.     END;
  573.  
  574. { gxFormatHalftoneTag COLLECTION ITEM }
  575.  
  576. CONST
  577.     gxFormatHalftoneTag            = 'half';
  578.  
  579.  
  580. TYPE
  581.     gxFormatHalftoneInfo = RECORD
  582.         numHalftones:            LONGINT;                                { Number of halftone records }
  583.         halftones:                ARRAY [0..0] OF gxHalftone;                { The halftone records }
  584.     END;
  585.  
  586. { gxInvertPageTag COLLECTION ITEM }
  587.  
  588. CONST
  589.     gxInvertPageTag                = 'invp';
  590.  
  591.  
  592. TYPE
  593.     gxInvertPageInfo = RECORD
  594.         padByte:                CHAR;
  595.         invert:                    BOOLEAN;                                { If true, invert page }
  596.     END;
  597.  
  598. { gxFlipPageHorizontalTag COLLECTION ITEM }
  599.  
  600. CONST
  601.     gxFlipPageHorizontalTag        = 'flph';
  602.  
  603.  
  604. TYPE
  605.     gxFlipPageHorizontalInfo = RECORD
  606.         padByte:                CHAR;
  607.         flipHorizontal:            BOOLEAN;                                { If true, flip x coordinates on page }
  608.     END;
  609.  
  610. { gxFlipPageVerticalTag COLLECTION ITEM }
  611.  
  612. CONST
  613.     gxFlipPageVerticalTag        = 'flpv';
  614.  
  615.  
  616. TYPE
  617.     gxFlipPageVerticalInfo = RECORD
  618.         padByte:                CHAR;
  619.         flipVertical:            BOOLEAN;                                { If true, flip y coordinates on page }
  620.     END;
  621.  
  622. { gxPreciseBitmapsTag COLLECTION ITEM }
  623.  
  624. CONST
  625.     gxPreciseBitmapsTag            = 'pbmp';
  626.  
  627.  
  628. TYPE
  629.     gxPreciseBitmapInfo = RECORD
  630.         preciseBitmaps:            BOOLEAN;                                { If true, scale page by 96% }
  631.         padByte:                CHAR;
  632.     END;
  633.  
  634. {
  635.  
  636.     >>>>>> PAPERTYPE COLLECTION ITEMS <<<<<<
  637.  
  638. }
  639. { gxBaseTag COLLECTION ITEM }
  640.  
  641. CONST
  642.     gxBaseTag                    = 'base';
  643.  
  644.  
  645. TYPE
  646.     gxBaseInfo = RECORD
  647.         baseType:                LONGINT;                                { PaperType's base type }
  648.     END;
  649.  
  650. { baseType field constants }
  651.  
  652. CONST
  653.     gxUnknownBase                = 0;                            { Base paper type from which this paper type is }
  654.     gxUSLetterBase                = 1;                            { derived.  This is not a complete set. }
  655.     gxUSLegalBase                = 2;
  656.     gxA4LetterBase                = 3;
  657.     gxB5LetterBase                = 4;
  658.     gxTabloidBase                = 5;
  659.  
  660. { gxCreatorTag COLLECTION ITEM }
  661.     gxCreatorTag                = 'crea';
  662.  
  663.  
  664. TYPE
  665.     gxCreatorInfo = RECORD
  666.         creator:                OSType;                                    { PaperType's creator }
  667.     END;
  668.  
  669. { gxUnitsTag COLLECTION ITEM }
  670.  
  671. CONST
  672.     gxUnitsTag                    = 'unit';
  673.  
  674.  
  675. TYPE
  676.     gxUnitsInfo = RECORD
  677.         units:                    CHAR;                                    { PaperType's units (used by PaperType Editor). }
  678.         padByte:                CHAR;
  679.     END;
  680.  
  681. { units field constants }
  682.  
  683. CONST
  684.     gxPicas                        = 0;                            { Pica measurement }
  685.     gxMMs                        = 1;                            { Millimeter measurement }
  686.     gxInches                    = 2;                            { Inches measurement }
  687.  
  688. { gxFlagsTag COLLECTION ITEM }
  689.     gxFlagsTag                    = 'flag';
  690.  
  691.  
  692. TYPE
  693.     gxFlagsInfo = RECORD
  694.         flags:                    LONGINT;                                { PaperType's flags }
  695.     END;
  696.  
  697. { flags field constants }
  698.  
  699. CONST
  700.     gxOldPaperTypeFlag            = $00800000;                    { Indicates a paper type for compatibility printing }
  701.     gxNewPaperTypeFlag            = $00400000;                    { Indicates a paper type for QuickDraw GX-aware printing }
  702.     gxOldAndNewFlag                = $00C00000;                    { Indicates a paper type that's both old and new }
  703.     gxDefaultPaperTypeFlag        = $00100000;                    { Indicates the default paper type in the group }
  704.  
  705. { gxCommentTag COLLECTION ITEM }
  706.     gxCommentTag                = 'cmnt';
  707.  
  708.  
  709. TYPE
  710.     gxCommentInfo = RECORD
  711.         comment:                Str255;                                    { PaperType's comment }
  712.     END;
  713.  
  714. {
  715.  
  716.     >>>>>> PRINTER VIEWDEVICE TAGS <<<<<<
  717.  
  718. }
  719. { gxPenTableTag COLLECTION ITEM }
  720.  
  721. CONST
  722.     gxPenTableTag                = 'pent';
  723.  
  724.  
  725. TYPE
  726.     gxPenTableEntry = RECORD
  727.         penName:                Str31;                                    { Name of the pen }
  728.         penColor:                gxColor;                                { Color to use from the color set }
  729.         penThickness:            Fixed;                                    { Size of the pen }
  730.         penUnits:                INTEGER;                                { Specifies units in which pen thickness is defined }
  731.         penPosition:            INTEGER;                                { Pen position in the carousel, -1 (kPenNotLoaded) if not loaded }
  732.     END;
  733.  
  734.     gxPenTable = RECORD
  735.         numPens:                LONGINT;                                { Number of pen entries in the following array }
  736.         pens:                    ARRAY [0..0] OF gxPenTableEntry;        { Array of pen entries }
  737.     END;
  738.  
  739.     gxPenTablePtr = ^gxPenTable;
  740.     gxPenTableHdl = ^gxPenTablePtr;
  741.  
  742. { penUnits field constants }
  743.  
  744. CONST
  745.     gxDeviceUnits                = 0;
  746.     gxMMUnits                    = 1;
  747.     gxInchesUnits                = 2;
  748.  
  749. { penPosition field constants }
  750.     gxPenNotLoaded                = -1;
  751.  
  752. {
  753.  
  754.     >>>>>> DIALOG-RELATED CONSTANTS AND TYPES <<<<<<
  755.  
  756. }
  757.     
  758. TYPE
  759.     gxDialogResult = LONGINT;
  760.  
  761.  
  762. CONST
  763.     gxCancelSelected            = 0;
  764.     gxOKSelected                = 1;
  765.     gxRevertSelected            = 2;
  766.  
  767.  
  768. TYPE
  769.     gxEditMenuRecord = RECORD
  770.         editMenuID:                INTEGER;
  771.         cutItem:                INTEGER;
  772.         copyItem:                INTEGER;
  773.         pasteItem:                INTEGER;
  774.         clearItem:                INTEGER;
  775.         undoItem:                INTEGER;
  776.     END;
  777.  
  778. {
  779.  
  780.     >>>>>> JOB FORMAT MODE CONSTANTS AND TYPES <<<<<<
  781.  
  782. }
  783.     gxJobFormatMode = OSType;
  784.  
  785.     gxJobFormatModeTable = RECORD
  786.         numModes:                LONGINT;                                { Number of job format modes to choose from }
  787.         modes:                    ARRAY [0..0] OF gxJobFormatMode;        { The job format modes }
  788.     END;
  789.  
  790.     gxJobFormatModeTablePtr = ^gxJobFormatModeTable;
  791.     gxJobFormatModeTableHdl = ^gxJobFormatModeTablePtr;
  792.  
  793.  
  794. CONST
  795.     gxGraphicsJobFormatMode        = 'grph';
  796.     gxTextJobFormatMode            = 'text';
  797.     gxPostScriptJobFormatMode    = 'post';
  798.  
  799.     
  800. TYPE
  801.     gxQueryType = LONGINT;
  802.  
  803.  
  804. CONST
  805.     gxGetJobFormatLineConstraintQuery = 0;
  806.     gxGetJobFormatFontsQuery    = 1;
  807.     gxGetJobFormatFontCommonStylesQuery = 2;
  808.     gxGetJobFormatFontConstraintQuery = 3;
  809.     gxSetStyleJobFormatCommonStyleQuery = 4;
  810.  
  811. { Structures used for Text mode field constants }
  812.  
  813. TYPE
  814.     gxPositionConstraintTable = RECORD
  815.         phase:                    gxPoint;                                { Position phase }
  816.         offset:                    gxPoint;                                { Position offset }
  817.         numSizes:                LONGINT;                                { Number of available font sizes }
  818.         sizes:                    ARRAY [0..0] OF Fixed;                    { The available font sizes }
  819.     END;
  820.  
  821.     gxPositionConstraintTablePtr = ^gxPositionConstraintTable;
  822.     gxPositionConstraintTableHdl = ^gxPositionConstraintTablePtr;
  823.  
  824. { numSizes field constants }
  825.  
  826. CONST
  827.     gxConstraintRange            = -1;
  828.  
  829.  
  830. TYPE
  831.     gxStyleNameTable = RECORD
  832.         numStyleNames:            LONGINT;                                { Number of style names }
  833.         styleNames:                ARRAY [0..0] OF Str255;                    { The style names }
  834.     END;
  835.  
  836.     gxStyleNameTablePtr = ^gxStyleNameTable;
  837.     gxStyleNameTableHdl = ^gxStyleNameTablePtr;
  838.  
  839.     gxFontTable = RECORD
  840.         numFonts:                LONGINT;                                { Number of font references }
  841.         fonts:                    ARRAY [0..0] OF gxFont;                    { The font references }
  842.     END;
  843.  
  844.     gxFontTablePtr = ^gxFontTable;
  845.     gxFontTableHdl = ^gxFontTablePtr;
  846.  
  847. { ------------------------------------------------------------------------------
  848.  
  849.                                 Printing Manager API Functions
  850.  
  851. -------------------------------------------------------------------------------- }
  852.  
  853. FUNCTION GXInitPrinting: OSErr;
  854.     {$IFC NOT GENERATINGCFM}
  855.     INLINE $203C, $0000, 0, $ABFE;
  856.     {$ENDC}
  857. FUNCTION GXExitPrinting: OSErr;
  858.     {$IFC NOT GENERATINGCFM}
  859.     INLINE $203C, $0000, 1, $ABFE;
  860.     {$ENDC}
  861. {
  862.     Error-Handling Routines
  863. }
  864. FUNCTION GXGetJobError(aJob: gxJob): OSErr;
  865.     {$IFC NOT GENERATINGCFM}
  866.     INLINE $203C, $0000, 14, $ABFE;
  867.     {$ENDC}
  868. PROCEDURE GXSetJobError(aJob: gxJob; anErr: OSErr);
  869.     {$IFC NOT GENERATINGCFM}
  870.     INLINE $203C, $0000, 15, $ABFE;
  871.     {$ENDC}
  872. {
  873.     Job Routines
  874. }
  875. FUNCTION GXNewJob(VAR aJob: gxJob): OSErr;
  876.     {$IFC NOT GENERATINGCFM}
  877.     INLINE $203C, $0000, 2, $ABFE;
  878.     {$ENDC}
  879. FUNCTION GXDisposeJob(aJob: gxJob): OSErr;
  880.     {$IFC NOT GENERATINGCFM}
  881.     INLINE $203C, $0000, 3, $ABFE;
  882.     {$ENDC}
  883. PROCEDURE GXFlattenJob(aJob: gxJob; flattenProc: gxPrintingFlattenProc; aVoid: UNIV Ptr);
  884.     {$IFC NOT GENERATINGCFM}
  885.     INLINE $203C, $0000, 4, $ABFE;
  886.     {$ENDC}
  887. FUNCTION GXUnflattenJob(aJob: gxJob; flattenProc: gxPrintingFlattenProc; aVoid: UNIV Ptr): gxJob;
  888.     {$IFC NOT GENERATINGCFM}
  889.     INLINE $203C, $0000, 5, $ABFE;
  890.     {$ENDC}
  891. FUNCTION GXFlattenJobToHdl(aJob: gxJob; aHdl: Handle): Handle;
  892.     {$IFC NOT GENERATINGCFM}
  893.     INLINE $203C, $0000, 6, $ABFE;
  894.     {$ENDC}
  895. FUNCTION GXUnflattenJobFromHdl(aJob: gxJob; aHdl: Handle): gxJob;
  896.     {$IFC NOT GENERATINGCFM}
  897.     INLINE $203C, $0000, 7, $ABFE;
  898.     {$ENDC}
  899. PROCEDURE GXInstallApplicationOverride(aJob: gxJob; messageID: INTEGER; override: UNIV Ptr);
  900.     {$IFC NOT GENERATINGCFM}
  901.     INLINE $203C, $0000, 8, $ABFE;
  902.     {$ENDC}
  903. FUNCTION GXGetJobCollection(aJob: gxJob): Collection;
  904.     {$IFC NOT GENERATINGCFM}
  905.     INLINE $203C, $0000, 29, $ABFE;
  906.     {$ENDC}
  907. FUNCTION GXGetJobRefCon(aJob: gxJob): Ptr;
  908.     {$IFC NOT GENERATINGCFM}
  909.     INLINE $203C, $0000, 30, $ABFE;
  910.     {$ENDC}
  911. PROCEDURE GXSetJobRefCon(aJob: gxJob; refCon: UNIV Ptr);
  912.     {$IFC NOT GENERATINGCFM}
  913.     INLINE $203C, $0000, 31, $ABFE;
  914.     {$ENDC}
  915. FUNCTION GXCopyJob(srcJob: gxJob; dstJob: gxJob): gxJob;
  916.     {$IFC NOT GENERATINGCFM}
  917.     INLINE $203C, $0000, 32, $ABFE;
  918.     {$ENDC}
  919. PROCEDURE GXSelectJobFormattingPrinter(aJob: gxJob; VAR printerName: Str31);
  920.     {$IFC NOT GENERATINGCFM}
  921.     INLINE $203C, $0000, 33, $ABFE;
  922.     {$ENDC}
  923. PROCEDURE GXSelectJobOutputPrinter(aJob: gxJob; VAR printerName: Str31);
  924.     {$IFC NOT GENERATINGCFM}
  925.     INLINE $203C, $0000, 34, $ABFE;
  926.     {$ENDC}
  927. PROCEDURE GXForEachJobFormatDo(aJob: gxJob; formatProc: gxFormatProc; refCon: UNIV Ptr);
  928.     {$IFC NOT GENERATINGCFM}
  929.     INLINE $203C, $0000, 35, $ABFE;
  930.     {$ENDC}
  931. FUNCTION GXCountJobFormats(aJob: gxJob): LONGINT;
  932.     {$IFC NOT GENERATINGCFM}
  933.     INLINE $203C, $0000, 36, $ABFE;
  934.     {$ENDC}
  935. FUNCTION GXUpdateJob(aJob: gxJob): BOOLEAN;
  936.     {$IFC NOT GENERATINGCFM}
  937.     INLINE $203C, $0000, 37, $ABFE;
  938.     {$ENDC}
  939. PROCEDURE GXConvertPrintRecord(aJob: gxJob; hPrint: THPrint);
  940.     {$IFC NOT GENERATINGCFM}
  941.     INLINE $203C, $0000, 38, $ABFE;
  942.     {$ENDC}
  943. PROCEDURE GXIdleJob(aJob: gxJob);
  944.     {$IFC NOT GENERATINGCFM}
  945.     INLINE $203C, $0000, 87, $ABFE;
  946.     {$ENDC}
  947. {
  948.     Job Format Modes Routines
  949. }
  950. PROCEDURE GXSetAvailableJobFormatModes(aJob: gxJob; formatModeTable: gxJobFormatModeTableHdl);
  951.     {$IFC NOT GENERATINGCFM}
  952.     INLINE $203C, $0000, 59, $ABFE;
  953.     {$ENDC}
  954. FUNCTION GXGetPreferredJobFormatMode(aJob: gxJob; VAR directOnly: BOOLEAN): gxJobFormatMode;
  955.     {$IFC NOT GENERATINGCFM}
  956.     INLINE $203C, $0000, 60, $ABFE;
  957.     {$ENDC}
  958. FUNCTION GXGetJobFormatMode(aJob: gxJob): gxJobFormatMode;
  959.     {$IFC NOT GENERATINGCFM}
  960.     INLINE $203C, $0000, 61, $ABFE;
  961.     {$ENDC}
  962. PROCEDURE GXSetJobFormatMode(aJob: gxJob; formatMode: gxJobFormatMode);
  963.     {$IFC NOT GENERATINGCFM}
  964.     INLINE $203C, $0000, 62, $ABFE;
  965.     {$ENDC}
  966. PROCEDURE GXJobFormatModeQuery(aJob: gxJob; aQueryType: gxQueryType; srcData: UNIV Ptr; dstData: UNIV Ptr);
  967.     {$IFC NOT GENERATINGCFM}
  968.     INLINE $203C, $0000, 63, $ABFE;
  969.     {$ENDC}
  970. {
  971.     Format Routines
  972. }
  973. FUNCTION GXNewFormat(aJob: gxJob): gxFormat;
  974.     {$IFC NOT GENERATINGCFM}
  975.     INLINE $203C, $0000, 9, $ABFE;
  976.     {$ENDC}
  977. PROCEDURE GXDisposeFormat(aFormat: gxFormat);
  978.     {$IFC NOT GENERATINGCFM}
  979.     INLINE $203C, $0000, 10, $ABFE;
  980.     {$ENDC}
  981. FUNCTION GXGetJobFormat(aJob: gxJob; whichFormat: LONGINT): gxFormat;
  982.     {$IFC NOT GENERATINGCFM}
  983.     INLINE $203C, $0000, 19, $ABFE;
  984.     {$ENDC}
  985. FUNCTION GXGetFormatJob(aFormat: gxFormat): gxJob;
  986.     {$IFC NOT GENERATINGCFM}
  987.     INLINE $203C, $0000, 20, $ABFE;
  988.     {$ENDC}
  989. FUNCTION GXGetFormatPaperType(aFormat: gxFormat): gxPaperType;
  990.     {$IFC NOT GENERATINGCFM}
  991.     INLINE $203C, $0000, 21, $ABFE;
  992.     {$ENDC}
  993. PROCEDURE GXGetFormatDimensions(aFormat: gxFormat; VAR pageSize: gxRectangle; VAR paperSize: gxRectangle);
  994.     {$IFC NOT GENERATINGCFM}
  995.     INLINE $203C, $0000, 22, $ABFE;
  996.     {$ENDC}
  997. FUNCTION GXGetFormatCollection(aFormat: gxFormat): Collection;
  998.     {$IFC NOT GENERATINGCFM}
  999.     INLINE $203C, $0000, 51, $ABFE;
  1000.     {$ENDC}
  1001. PROCEDURE GXChangedFormat(aFormat: gxFormat);
  1002.     {$IFC NOT GENERATINGCFM}
  1003.     INLINE $203C, $0000, 52, $ABFE;
  1004.     {$ENDC}
  1005. FUNCTION GXCopyFormat(srcFormat: gxFormat; dstFormat: gxFormat): gxFormat;
  1006.     {$IFC NOT GENERATINGCFM}
  1007.     INLINE $203C, $0000, 53, $ABFE;
  1008.     {$ENDC}
  1009. FUNCTION GXCloneFormat(aFormat: gxFormat): gxFormat;
  1010.     {$IFC NOT GENERATINGCFM}
  1011.     INLINE $203C, $0000, 54, $ABFE;
  1012.     {$ENDC}
  1013. FUNCTION GXCountFormatOwners(aFormat: gxFormat): LONGINT;
  1014.     {$IFC NOT GENERATINGCFM}
  1015.     INLINE $203C, $0000, 55, $ABFE;
  1016.     {$ENDC}
  1017. PROCEDURE GXGetFormatMapping(aFormat: gxFormat; VAR fmtMapping: gxMapping);
  1018.     {$IFC NOT GENERATINGCFM}
  1019.     INLINE $203C, $0000, 56, $ABFE;
  1020.     {$ENDC}
  1021. FUNCTION GXGetFormatForm(aFormat: gxFormat; VAR mask: gxShape): gxShape;
  1022.     {$IFC NOT GENERATINGCFM}
  1023.     INLINE $203C, $0000, 57, $ABFE;
  1024.     {$ENDC}
  1025. PROCEDURE GXSetFormatForm(aFormat: gxFormat; form: gxShape; mask: gxShape);
  1026.     {$IFC NOT GENERATINGCFM}
  1027.     INLINE $203C, $0000, 58, $ABFE;
  1028.     {$ENDC}
  1029. {
  1030.     PaperType Routines
  1031. }
  1032. FUNCTION GXNewPaperType(aJob: gxJob; VAR name: Str31; VAR pageSize: gxRectangle; VAR paperSize: gxRectangle): gxPaperType;
  1033.     {$IFC NOT GENERATINGCFM}
  1034.     INLINE $203C, $0000, 11, $ABFE;
  1035.     {$ENDC}
  1036. PROCEDURE GXDisposePaperType(aPaperType: gxPaperType);
  1037.     {$IFC NOT GENERATINGCFM}
  1038.     INLINE $203C, $0000, 12, $ABFE;
  1039.     {$ENDC}
  1040. FUNCTION GXGetNewPaperType(aJob: gxJob; resID: INTEGER): gxPaperType;
  1041.     {$IFC NOT GENERATINGCFM}
  1042.     INLINE $203C, $0000, 13, $ABFE;
  1043.     {$ENDC}
  1044. FUNCTION GXCountJobPaperTypes(aJob: gxJob; forFormatDevice: BOOLEAN): LONGINT;
  1045.     {$IFC NOT GENERATINGCFM}
  1046.     INLINE $203C, $0000, 66, $ABFE;
  1047.     {$ENDC}
  1048. FUNCTION GXGetJobPaperType(aJob: gxJob; whichPaperType: LONGINT; forFormatDevice: BOOLEAN; aPaperType: gxPaperType): gxPaperType;
  1049.     {$IFC NOT GENERATINGCFM}
  1050.     INLINE $203C, $0000, 67, $ABFE;
  1051.     {$ENDC}
  1052. PROCEDURE GXForEachJobPaperTypeDo(aJob: gxJob; aProc: gxPaperTypeProc; refCon: UNIV Ptr; forFormattingPrinter: BOOLEAN);
  1053.     {$IFC NOT GENERATINGCFM}
  1054.     INLINE $203C, $0000, 68, $ABFE;
  1055.     {$ENDC}
  1056. FUNCTION GXCopyPaperType(srcPaperType: gxPaperType; dstPaperType: gxPaperType): gxPaperType;
  1057.     {$IFC NOT GENERATINGCFM}
  1058.     INLINE $203C, $0000, 69, $ABFE;
  1059.     {$ENDC}
  1060. PROCEDURE GXGetPaperTypeName(aPaperType: gxPaperType; VAR papertypeName: Str31);
  1061.     {$IFC NOT GENERATINGCFM}
  1062.     INLINE $203C, $0000, 70, $ABFE;
  1063.     {$ENDC}
  1064. PROCEDURE GXGetPaperTypeDimensions(aPaperType: gxPaperType; VAR pageSize: gxRectangle; VAR paperSize: gxRectangle);
  1065.     {$IFC NOT GENERATINGCFM}
  1066.     INLINE $203C, $0000, 71, $ABFE;
  1067.     {$ENDC}
  1068. FUNCTION GXGetPaperTypeJob(aPaperType: gxPaperType): gxJob;
  1069.     {$IFC NOT GENERATINGCFM}
  1070.     INLINE $203C, $0000, 72, $ABFE;
  1071.     {$ENDC}
  1072. FUNCTION GXGetPaperTypeCollection(aPaperType: gxPaperType): Collection;
  1073.     {$IFC NOT GENERATINGCFM}
  1074.     INLINE $203C, $0000, 73, $ABFE;
  1075.     {$ENDC}
  1076. {
  1077.     Printer Routines
  1078. }
  1079. FUNCTION GXGetJobFormattingPrinter(aJob: gxJob): gxPrinter;
  1080.     {$IFC NOT GENERATINGCFM}
  1081.     INLINE $203C, $0000, 39, $ABFE;
  1082.     {$ENDC}
  1083. FUNCTION GXGetJobOutputPrinter(aJob: gxJob): gxPrinter;
  1084.     {$IFC NOT GENERATINGCFM}
  1085.     INLINE $203C, $0000, 40, $ABFE;
  1086.     {$ENDC}
  1087. FUNCTION GXGetJobPrinter(aJob: gxJob): gxPrinter;
  1088.     {$IFC NOT GENERATINGCFM}
  1089.     INLINE $203C, $0000, 41, $ABFE;
  1090.     {$ENDC}
  1091. FUNCTION GXGetPrinterJob(aPrinter: gxPrinter): gxJob;
  1092.     {$IFC NOT GENERATINGCFM}
  1093.     INLINE $203C, $0000, 42, $ABFE;
  1094.     {$ENDC}
  1095. PROCEDURE GXForEachPrinterViewDeviceDo(aPrinter: gxPrinter; aProc: gxViewDeviceProc; refCon: UNIV Ptr);
  1096.     {$IFC NOT GENERATINGCFM}
  1097.     INLINE $203C, $0000, 43, $ABFE;
  1098.     {$ENDC}
  1099. FUNCTION GXCountPrinterViewDevices(aPrinter: gxPrinter): LONGINT;
  1100.     {$IFC NOT GENERATINGCFM}
  1101.     INLINE $203C, $0000, 44, $ABFE;
  1102.     {$ENDC}
  1103. FUNCTION GXGetPrinterViewDevice(aPrinter: gxPrinter; whichViewDevice: LONGINT): gxViewDevice;
  1104.     {$IFC NOT GENERATINGCFM}
  1105.     INLINE $203C, $0000, 45, $ABFE;
  1106.     {$ENDC}
  1107. PROCEDURE GXSelectPrinterViewDevice(aPrinter: gxPrinter; whichViewDevice: LONGINT);
  1108.     {$IFC NOT GENERATINGCFM}
  1109.     INLINE $203C, $0000, 46, $ABFE;
  1110.     {$ENDC}
  1111. PROCEDURE GXGetPrinterName(aPrinter: gxPrinter; VAR printerName: Str31);
  1112.     {$IFC NOT GENERATINGCFM}
  1113.     INLINE $203C, $0000, 47, $ABFE;
  1114.     {$ENDC}
  1115. FUNCTION GXGetPrinterType(aPrinter: gxPrinter): OSType;
  1116.     {$IFC NOT GENERATINGCFM}
  1117.     INLINE $203C, $0000, 48, $ABFE;
  1118.     {$ENDC}
  1119. PROCEDURE GXGetPrinterDriverName(aPrinter: gxPrinter; VAR driverName: Str31);
  1120.     {$IFC NOT GENERATINGCFM}
  1121.     INLINE $203C, $0000, 49, $ABFE;
  1122.     {$ENDC}
  1123. FUNCTION GXGetPrinterDriverType(aPrinter: gxPrinter): OSType;
  1124.     {$IFC NOT GENERATINGCFM}
  1125.     INLINE $203C, $0000, 50, $ABFE;
  1126.     {$ENDC}
  1127. {
  1128.     Dialog Routines
  1129. }
  1130. FUNCTION GXJobDefaultFormatDialog(aJob: gxJob; VAR anEditMenuRec: gxEditMenuRecord): gxDialogResult;
  1131.     {$IFC NOT GENERATINGCFM}
  1132.     INLINE $203C, $0000, 16, $ABFE;
  1133.     {$ENDC}
  1134. FUNCTION GXJobPrintDialog(aJob: gxJob; VAR anEditMenuRec: gxEditMenuRecord): gxDialogResult;
  1135.     {$IFC NOT GENERATINGCFM}
  1136.     INLINE $203C, $0000, 17, $ABFE;
  1137.     {$ENDC}
  1138. FUNCTION GXFormatDialog(aFormat: gxFormat; VAR anEditMenuRec: gxEditMenuRecord; title: StringPtr): gxDialogResult;
  1139.     {$IFC NOT GENERATINGCFM}
  1140.     INLINE $203C, $0000, 18, $ABFE;
  1141.     {$ENDC}
  1142. PROCEDURE GXEnableJobScalingPanel(aJob: gxJob; enabled: BOOLEAN);
  1143.     {$IFC NOT GENERATINGCFM}
  1144.     INLINE $203C, $0000, 64, $ABFE;
  1145.     {$ENDC}
  1146. PROCEDURE GXGetJobPanelDimensions(aJob: gxJob; VAR panelArea: Rect);
  1147.     {$IFC NOT GENERATINGCFM}
  1148.     INLINE $203C, $0000, 65, $ABFE;
  1149.     {$ENDC}
  1150. {
  1151.     Spooling Routines
  1152. }
  1153. PROCEDURE GXGetJobPageRange(theJob: gxJob; VAR firstPage: LONGINT; VAR lastPage: LONGINT);
  1154.     {$IFC NOT GENERATINGCFM}
  1155.     INLINE $203C, $0000, 23, $ABFE;
  1156.     {$ENDC}
  1157. PROCEDURE GXStartJob(theJob: gxJob; docName: StringPtr; pageCount: LONGINT);
  1158.     {$IFC NOT GENERATINGCFM}
  1159.     INLINE $203C, $0000, 24, $ABFE;
  1160.     {$ENDC}
  1161. PROCEDURE GXPrintPage(theJob: gxJob; pageNumber: LONGINT; theFormat: gxFormat; thePage: gxShape);
  1162.     {$IFC NOT GENERATINGCFM}
  1163.     INLINE $203C, $0000, 25, $ABFE;
  1164.     {$ENDC}
  1165. FUNCTION GXStartPage(theJob: gxJob; pageNumber: LONGINT; theFormat: gxFormat; numViewPorts: LONGINT; VAR viewPortList: gxViewPort): BOOLEAN;
  1166.     {$IFC NOT GENERATINGCFM}
  1167.     INLINE $203C, $0000, 26, $ABFE;
  1168.     {$ENDC}
  1169. PROCEDURE GXFinishPage(theJob: gxJob);
  1170.     {$IFC NOT GENERATINGCFM}
  1171.     INLINE $203C, $0000, 27, $ABFE;
  1172.     {$ENDC}
  1173. PROCEDURE GXFinishJob(theJob: gxJob);
  1174.     {$IFC NOT GENERATINGCFM}
  1175.     INLINE $203C, $0000, 28, $ABFE;
  1176.     {$ENDC}
  1177. {
  1178.     PrintFile Routines
  1179. }
  1180. FUNCTION GXOpenPrintFile(theJob: gxJob; anFSSpec: FSSpecPtr; permission: ByteParameter): gxPrintFile;
  1181.     {$IFC NOT GENERATINGCFM}
  1182.     INLINE $203C, $0000, 74, $ABFE;
  1183.     {$ENDC}
  1184. PROCEDURE GXClosePrintFile(aPrintFile: gxPrintFile);
  1185.     {$IFC NOT GENERATINGCFM}
  1186.     INLINE $203C, $0000, 75, $ABFE;
  1187.     {$ENDC}
  1188. FUNCTION GXGetPrintFileJob(aPrintFile: gxPrintFile): gxJob;
  1189.     {$IFC NOT GENERATINGCFM}
  1190.     INLINE $203C, $0000, 76, $ABFE;
  1191.     {$ENDC}
  1192. FUNCTION GXCountPrintFilePages(aPrintFile: gxPrintFile): LONGINT;
  1193.     {$IFC NOT GENERATINGCFM}
  1194.     INLINE $203C, $0000, 77, $ABFE;
  1195.     {$ENDC}
  1196. PROCEDURE GXReadPrintFilePage(aPrintFile: gxPrintFile; pageNumber: LONGINT; numViewPorts: LONGINT; VAR viewPortList: gxViewPort; VAR pgFormat: gxFormat; VAR pgShape: gxShape);
  1197.     {$IFC NOT GENERATINGCFM}
  1198.     INLINE $203C, $0000, 78, $ABFE;
  1199.     {$ENDC}
  1200. PROCEDURE GXReplacePrintFilePage(aPrintFile: gxPrintFile; pageNumber: LONGINT; aFormat: gxFormat; aShape: gxShape);
  1201.     {$IFC NOT GENERATINGCFM}
  1202.     INLINE $203C, $0000, 79, $ABFE;
  1203.     {$ENDC}
  1204. PROCEDURE GXInsertPrintFilePage(aPrintFile: gxPrintFile; atPageNumber: LONGINT; pgFormat: gxFormat; pgShape: gxShape);
  1205.     {$IFC NOT GENERATINGCFM}
  1206.     INLINE $203C, $0000, 80, $ABFE;
  1207.     {$ENDC}
  1208. PROCEDURE GXDeletePrintFilePageRange(aPrintFile: gxPrintFile; fromPageNumber: LONGINT; toPageNumber: LONGINT);
  1209.     {$IFC NOT GENERATINGCFM}
  1210.     INLINE $203C, $0000, 81, $ABFE;
  1211.     {$ENDC}
  1212. PROCEDURE GXSavePrintFile(aPrintFile: gxPrintFile; VAR anFSSpec: FSSpec);
  1213.     {$IFC NOT GENERATINGCFM}
  1214.     INLINE $203C, $0000, 82, $ABFE;
  1215.     {$ENDC}
  1216. {
  1217.     ColorSync Routines
  1218. }
  1219. FUNCTION GXFindPrinterProfile(aPrinter: gxPrinter; searchData: UNIV Ptr; index: LONGINT; VAR returnedProfile: gxColorProfile): LONGINT;
  1220.     {$IFC NOT GENERATINGCFM}
  1221.     INLINE $203C, $0000, 83, $ABFE;
  1222.     {$ENDC}
  1223. FUNCTION GXFindFormatProfile(aFormat: gxFormat; searchData: UNIV Ptr; index: LONGINT; VAR returnedProfile: gxColorProfile): LONGINT;
  1224.     {$IFC NOT GENERATINGCFM}
  1225.     INLINE $203C, $0000, 84, $ABFE;
  1226.     {$ENDC}
  1227. PROCEDURE GXSetPrinterProfile(aPrinter: gxPrinter; oldProfile: gxColorProfile; newProfile: gxColorProfile);
  1228.     {$IFC NOT GENERATINGCFM}
  1229.     INLINE $203C, $0000, 85, $ABFE;
  1230.     {$ENDC}
  1231. PROCEDURE GXSetFormatProfile(aFormat: gxFormat; oldProfile: gxColorProfile; newProfile: gxColorProfile);
  1232.     {$IFC NOT GENERATINGCFM}
  1233.     INLINE $203C, $0000, 86, $ABFE;
  1234.     {$ENDC}
  1235. {***********************************************************************
  1236.                         Start of old "GXPrintingResEquates.h/a/p" interface file.
  1237.                 ************************************************************************}
  1238. {    ------------------------------------
  1239.                 Basic client types
  1240.     ------------------------------------ }
  1241.  
  1242. CONST
  1243.     gxPrintingManagerType        = 'pmgr';
  1244.     gxImagingSystemType            = 'gxis';
  1245.     gxPrinterDriverType            = 'pdvr';
  1246.     gxPrintingExtensionType        = 'pext';
  1247.     gxUnknownPrinterType        = 'none';
  1248.     gxAnyPrinterType            = 'univ';
  1249.     gxQuickdrawPrinterType        = 'qdrw';
  1250.     gxPortableDocPrinterType    = 'gxpd';
  1251.     gxRasterPrinterType            = 'rast';
  1252.     gxPostscriptPrinterType        = 'post';
  1253.     gxVectorPrinterType            = 'vect';
  1254.  
  1255. { All pre-defined printing collection items have this ID }
  1256.     gxPrintingTagID                = -28672;
  1257.  
  1258. {    ----------------------------------------------------------------------
  1259.  
  1260.         Resource types and IDs used by both extension and driver writers
  1261.  
  1262.     ---------------------------------------------------------------------- }
  1263. { Resources in a printer driver or extension must be based off of these IDs }
  1264.     gxPrintingDriverBaseID        = -27648;
  1265.     gxPrintingExtensionBaseID    = -27136;
  1266.  
  1267. {    Override resources tell the system what messages a driver or extension
  1268.         is overriding.  A driver may have a series of these resources. }
  1269.     gxOverrideType                = 'over';
  1270.  
  1271. {    --------------------------------------------------------------
  1272.  
  1273.         Message ID definitions by both extension and driver writers
  1274.  
  1275.     --------------------------------------------------------------- }
  1276. { Identifiers for universal message overrides. }
  1277.     gxInitializeMsg                = 0;
  1278.     gxShutDownMsg                = 1;
  1279.     gxJobIdleMsg                = 2;
  1280.     gxJobStatusMsg                = 3;
  1281.     gxPrintingEventMsg            = 4;
  1282.     gxJobDefaultFormatDialogMsg    = 5;
  1283.     gxFormatDialogMsg            = 6;
  1284.     gxJobPrintDialogMsg            = 7;
  1285.     gxFilterPanelEventMsg        = 8;
  1286.     gxHandlePanelEventMsg        = 9;
  1287.     gxParsePageRangeMsg            = 10;
  1288.     gxDefaultJobMsg                = 11;
  1289.     gxDefaultFormatMsg            = 12;
  1290.     gxDefaultPaperTypeMsg        = 13;
  1291.     gxDefaultPrinterMsg            = 14;
  1292.     gxCreateSpoolFileMsg        = 15;
  1293.     gxSpoolPageMsg                = 16;
  1294.     gxSpoolDataMsg                = 17;
  1295.     gxSpoolResourceMsg            = 18;
  1296.     gxCompleteSpoolFileMsg        = 19;
  1297.     gxCountPagesMsg                = 20;
  1298.     gxDespoolPageMsg            = 21;
  1299.     gxDespoolDataMsg            = 22;
  1300.     gxDespoolResourceMsg        = 23;
  1301.     gxCloseSpoolFileMsg            = 24;
  1302.     gxStartJobMsg                = 25;
  1303.     gxFinishJobMsg                = 26;
  1304.     gxStartPageMsg                = 27;
  1305.     gxFinishPageMsg                = 28;
  1306.     gxPrintPageMsg                = 29;
  1307.     gxSetupImageDataMsg            = 30;
  1308.     gxImageJobMsg                = 31;
  1309.     gxImageDocumentMsg            = 32;
  1310.     gxImagePageMsg                = 33;
  1311.     gxRenderPageMsg                = 34;
  1312.     gxCreateImageFileMsg        = 35;
  1313.     gxOpenConnectionMsg            = 36;
  1314.     gxCloseConnectionMsg        = 37;
  1315.     gxStartSendPageMsg            = 38;
  1316.     gxFinishSendPageMsg            = 39;
  1317.     gxWriteDataMsg                = 40;
  1318.     gxBufferDataMsg                = 41;
  1319.     gxDumpBufferMsg                = 42;
  1320.     gxFreeBufferMsg                = 43;
  1321.     gxCheckStatusMsg            = 44;
  1322.     gxGetDeviceStatusMsg        = 45;
  1323.     gxFetchTaggedDataMsg        = 46;
  1324.     gxGetDTPMenuListMsg            = 47;
  1325.     gxDTPMenuSelectMsg            = 48;
  1326.     gxHandleAlertFilterMsg        = 49;
  1327.     gxJobFormatModeQueryMsg        = 50;
  1328.     gxWriteStatusToDTPWindowMsg    = 51;
  1329.     gxInitializeStatusAlertMsg    = 52;
  1330.     gxHandleAlertStatusMsg        = 53;
  1331.     gxHandleAlertEventMsg        = 54;
  1332.     gxCleanupStartJobMsg        = 55;
  1333.     gxCleanupStartPageMsg        = 56;
  1334.     gxCleanupOpenConnectionMsg    = 57;
  1335.     gxCleanupStartSendPageMsg    = 58;
  1336.     gxDefaultDesktopPrinterMsg    = 59;
  1337.     gxCaptureOutputDeviceMsg    = 60;
  1338.     gxOpenConnectionRetryMsg    = 61;
  1339.     gxExamineSpoolFileMsg        = 62;
  1340.     gxFinishSendPlaneMsg        = 63;
  1341.     gxDoesPaperFitMsg            = 64;
  1342.     gxChooserMessageMsg            = 65;
  1343.     gxFindPrinterProfileMsg        = 66;
  1344.     gxFindFormatProfileMsg        = 67;
  1345.     gxSetPrinterProfileMsg        = 68;
  1346.     gxSetFormatProfileMsg        = 69;
  1347.     gxHandleAltDestinationMsg    = 70;
  1348.     gxSetupPageImageDataMsg        = 71;
  1349.  
  1350. { Identifiers for Quickdraw message overrides. }
  1351.     gxPrOpenDocMsg                = 0;
  1352.     gxPrCloseDocMsg                = 1;
  1353.     gxPrOpenPageMsg                = 2;
  1354.     gxPrClosePageMsg            = 3;
  1355.     gxPrintDefaultMsg            = 4;
  1356.     gxPrStlDialogMsg            = 5;
  1357.     gxPrJobDialogMsg            = 6;
  1358.     gxPrStlInitMsg                = 7;
  1359.     gxPrJobInitMsg                = 8;
  1360.     gxPrDlgMainMsg                = 9;
  1361.     gxPrValidateMsg                = 10;
  1362.     gxPrJobMergeMsg                = 11;
  1363.     gxPrGeneralMsg                = 12;
  1364.     gxConvertPrintRecordToMsg    = 13;
  1365.     gxConvertPrintRecordFromMsg    = 14;
  1366.     gxPrintRecordToJobMsg        = 15;
  1367.  
  1368. { Identifiers for raster imaging message overrides. }
  1369.     gxRasterDataInMsg            = 0;
  1370.     gxRasterLineFeedMsg            = 1;
  1371.     gxRasterPackageBitmapMsg    = 2;
  1372.  
  1373. { Identifiers for PostScript imaging message overrides. }
  1374.     gxPostscriptQueryPrinterMsg    = 0;
  1375.     gxPostscriptInitializePrinterMsg = 1;
  1376.     gxPostscriptResetPrinterMsg    = 2;
  1377.     gxPostscriptExitServerMsg    = 3;
  1378.     gxPostscriptGetStatusTextMsg = 4;
  1379.     gxPostscriptGetPrinterTextMsg = 5;
  1380.     gxPostscriptScanStatusTextMsg = 6;
  1381.     gxPostscriptScanPrinterTextMsg = 7;
  1382.     gxPostscriptGetDocumentProcSetListMsg = 8;
  1383.     gxPostscriptDownloadProcSetListMsg = 9;
  1384.     gxPostscriptGetPrinterGlyphsInformationMsg = 10;
  1385.     gxPostscriptStreamFontMsg    = 11;
  1386.     gxPostscriptDoDocumentHeaderMsg = 12;
  1387.     gxPostscriptDoDocumentSetUpMsg = 13;
  1388.     gxPostscriptDoDocumentTrailerMsg = 14;
  1389.     gxPostscriptDoPageSetUpMsg    = 15;
  1390.     gxPostscriptSelectPaperTypeMsg = 16;
  1391.     gxPostscriptDoPageTrailerMsg = 17;
  1392.     gxPostscriptEjectPageMsg    = 18;
  1393.     gxPostscriptProcessShapeMsg    = 19;
  1394.     gxPostScriptEjectPendingPageMsg = 20;
  1395.  
  1396. { Identifiers for Vector imaging message overrides. }
  1397.     gxVectorPackageDataMsg        = 0;
  1398.     gxVectorLoadPensMsg            = 1;
  1399.     gxVectorVectorizeShapeMsg    = 2;
  1400.  
  1401. { Dialog related resource types }
  1402.     gxPrintingAlertType            = 'plrt';
  1403.     gxStatusType                = 'stat';
  1404.     gxExtendedDITLType            = 'xdtl';
  1405.     gxPrintPanelType            = 'ppnl';
  1406.     gxCollectionType            = 'cltn';
  1407.  
  1408. { Communication resource types }
  1409. {
  1410.     The looker resource is used by the Chooser PACK to determine what kind
  1411.     of communications this driver supports. (In order to generate/handle the 
  1412.     pop-up menu for "Connect via:".
  1413.     
  1414.     The looker resource is also used by PrinterShare to determine the AppleTalk NBP Type
  1415.     for servers created for this driver.
  1416. }
  1417.     gxLookerType                = 'look';
  1418.     gxLookerID                    = -4096;
  1419.  
  1420. { The communications method and private data used to connect to the printer }
  1421.     gxDeviceCommunicationsType    = 'comm';
  1422.  
  1423. {    -------------------------------------------------
  1424.  
  1425.     Resource types and IDs used by extension writers
  1426.  
  1427.     ------------------------------------------------- }
  1428.     gxExtensionUniversalOverrideID = gxPrintingExtensionBaseID;
  1429.  
  1430.     gxExtensionImagingOverrideSelectorID = gxPrintingExtensionBaseID;
  1431.  
  1432.     gxExtensionScopeType        = 'scop';
  1433.     gxDriverScopeID                = gxPrintingExtensionBaseID;
  1434.     gxPrinterScopeID            = gxPrintingExtensionBaseID + 1;
  1435.     gxPrinterExceptionScopeID    = gxPrintingExtensionBaseID + 2;
  1436.  
  1437.     gxExtensionLoadType            = 'load';
  1438.     gxExtensionLoadID            = gxPrintingExtensionBaseID;
  1439.  
  1440.     gxExtensionLoadFirst        = $00000100;
  1441.     gxExtensionLoadAnywhere        = $7FFFFFFF;
  1442.     gxExtensionLoadLast            = $FFFFFF00;
  1443.  
  1444.     gxExtensionOptimizationType    = 'eopt';
  1445.     gxExtensionOptimizationID    = gxPrintingExtensionBaseID;
  1446.  
  1447. {    -----------------------------------------------
  1448.  
  1449.     Resource types and IDs used by driver writers
  1450.  
  1451.     ----------------------------------------------- }
  1452.     gxDriverUniversalOverrideID    = gxPrintingDriverBaseID;
  1453.     gxDriverImagingOverrideID    = gxPrintingDriverBaseID + 1;
  1454.     gxDriverCompatibilityOverrideID = gxPrintingDriverBaseID + 2;
  1455.  
  1456.     gxDriverFileFormatType        = 'pfil';
  1457.     gxDriverFileFormatID        = gxPrintingDriverBaseID;
  1458.  
  1459.     gxDestinationAdditionType    = 'dsta';
  1460.     gxDestinationAdditionID        = gxPrintingDriverBaseID;
  1461.  
  1462. { IMAGING RESOURCES }
  1463. {    The imaging system resource specifies which imaging system a printer
  1464.         driver wishes to use. }
  1465.     gxImagingSystemSelectorType    = 'isys';
  1466.     gxImagingSystemSelectorID    = gxPrintingDriverBaseID;
  1467.  
  1468. { 'exft' resource ID -- exclude font list }
  1469.     kExcludeFontListType        = 'exft';
  1470.     kExcludeFontListID            = gxPrintingDriverBaseID;
  1471.  
  1472. { Resource for type for color matching }
  1473.     gxColorMatchingDataType        = 'prof';
  1474.     gxColorMatchingDataID        = gxPrintingDriverBaseID;
  1475.  
  1476. { Resource type and id for the tray count }
  1477.     gxTrayCountDataType            = 'tray';
  1478.     gxTrayCountDataID            = gxPrintingDriverBaseID;
  1479.  
  1480. { Resource type for the tray names }
  1481.     gxTrayNameDataType            = 'tryn';
  1482.  
  1483. { Resource type for manual feed preferences, stored in DTP. }
  1484.     gxManualFeedAlertPrefsType    = 'mfpr';
  1485.     gxManualFeedAlertPrefsID    = gxPrintingDriverBaseID;
  1486.  
  1487. { Resource type for desktop printer output characteristics, stored in DTP. }
  1488.     gxDriverOutputType            = 'outp';
  1489.     gxDriverOutputTypeID        = 1;
  1490.  
  1491. { IO Resources }
  1492. { Resource type and ID for default IO and buffering resources }
  1493.     gxUniversalIOPrefsType        = 'iobm';
  1494.     gxUniversalIOPrefsID        = gxPrintingDriverBaseID;
  1495.  
  1496. {    Resource types and IDs for default implementation of CaptureOutputDevice.
  1497.         The default implementation of CaptureOutputDevice only handles PAP devices }
  1498.     gxCaptureType                = 'cpts';
  1499.     gxCaptureStringID            = gxPrintingDriverBaseID;
  1500.     gxReleaseStringID            = gxPrintingDriverBaseID + 1;
  1501.     gxUncapturedAppleTalkType    = gxPrintingDriverBaseID + 2;
  1502.     gxCapturedAppleTalkType        = gxPrintingDriverBaseID + 3;
  1503.  
  1504. { Resource type and ID for custom halftone matrix }
  1505.     gxCustomMatrixType            = 'dmat';
  1506.     gxCustomMatrixID            = gxPrintingDriverBaseID;
  1507.  
  1508. { Resource type and ID for raster driver rendering preferences }
  1509.     gxRasterPrefsType            = 'rdip';
  1510.     gxRasterPrefsID                = gxPrintingDriverBaseID;
  1511.  
  1512. { Resource type for specifiying a colorset }
  1513.     gxColorSetResType            = 'crst';
  1514.  
  1515. { Resource type and ID for raster driver packaging preferences }
  1516.     gxRasterPackType            = 'rpck';
  1517.     gxRasterPackID                = gxPrintingDriverBaseID;
  1518.  
  1519. { Resource type and ID for raster driver packaging options }
  1520.     gxRasterNumNone                = 0;                            { Number isn't output at all }
  1521.     gxRasterNumDirect            = 1;                            { Lowest minWidth bytes as data }
  1522.     gxRasterNumToASCII            = 2;                            { minWidth ASCII characters }
  1523.  
  1524.     gxRasterPackOptionsType        = 'ropt';
  1525.     gxRasterPackOptionsID        = gxPrintingDriverBaseID;
  1526.  
  1527. { Resource type for the PostScript imaging system procedure set control resource }
  1528.     gxPostscriptProcSetControlType = 'prec';
  1529.  
  1530. { Resource type for the PostScript imaging system printer font resource }
  1531.     gxPostscriptPrinterFontType    = 'pfnt';
  1532.  
  1533. { Resource type and id for the PostScript imaging system imaging preferences }
  1534.     gxPostscriptPrefsType        = 'pdip';
  1535.     gxPostscriptPrefsID            = gxPrintingDriverBaseID;
  1536.  
  1537. { Resource type and id for the PostScript imaging system default scanning code }
  1538.     gxPostscriptScanningType    = 'scan';
  1539.     gxPostscriptScanningID        = gxPrintingDriverBaseID;
  1540.  
  1541. { Old Application Support Resources }
  1542.     gxCustType                    = 'cust';
  1543.     gxCustID                    = -8192;
  1544.  
  1545.     gxReslType                    = 'resl';
  1546.     gxReslID                    = -8192;
  1547.  
  1548.     gxDiscreteResolution        = 0;
  1549.  
  1550.     gxStlDialogResID            = -8192;
  1551.  
  1552.     gxJobDialogResID            = -8191;
  1553.  
  1554.     gxScaleTableType            = 'stab';
  1555.     gxDITLControlType            = 'dctl';
  1556.  
  1557. {    The default implementation of gxPrintDefault loads and
  1558.     PrValidates a print record stored in the following driver resource. }
  1559.     gxPrintRecordType            = 'PREC';
  1560.     gxDefaultPrintRecordID        = 0;
  1561.  
  1562. {
  1563.     -----------------------------------------------
  1564.  
  1565.     Resource types and IDs used in papertype files
  1566.  
  1567.     -----------------------------------------------
  1568. }
  1569. { Resource type and ID for driver papertypes placed in individual files }
  1570.     gxSignatureType                = 'sig ';
  1571.     gxPapertypeSignatureID        = 0;
  1572.  
  1573. { Papertype creator types }
  1574.     gxDrvrPaperType                = 'drpt';
  1575.     gxSysPaperType                = 'sypt';                        { System paper type creator }
  1576.     gxUserPaperType                = 'uspt';                        { User paper type creator }
  1577. { Driver creator types == driver file's creator value }
  1578.     gxPaperTypeType                = 'ptyp';
  1579.  
  1580. {********************************************************************
  1581.                     Start of old "GXPrintingMessages.h/a/p" interface file.
  1582.             *********************************************************************}
  1583. { ------------------------------------------------------------------------------
  1584.  
  1585.                                     Constants and Types
  1586.  
  1587. -------------------------------------------------------------------------------- }
  1588. {
  1589.  
  1590.     ABSTRACT DATA TYPES
  1591.  
  1592. }
  1593.     
  1594. TYPE
  1595.     gxSpoolFile = Ptr;
  1596.  
  1597.     gxPanelEvent = LONGINT;
  1598.  
  1599. { Dialog panel event equates }
  1600.  
  1601. CONST
  1602.     gxPanelNoEvt                = 0;
  1603.     gxPanelOpenEvt                = 1;                            { Initialize and draw }
  1604.     gxPanelCloseEvt                = 2;                            { Your panel is going away (panel switch, confirm or cancel) }
  1605.     gxPanelHitEvt                = 3;                            { There's a hit in your panel }
  1606.     gxPanelActivateEvt            = 4;                            { The dialog window has just been activated }
  1607.     gxPanelDeactivateEvt        = 5;                            { The dialog window is about to be deactivated }
  1608.     gxPanelIconFocusEvt            = 6;                            { The focus changes from the panel to the icon list }
  1609.     gxPanelPanelFocusEvt        = 7;                            { The focus changes from the icon list to the panel }
  1610.     gxPanelFilterEvt            = 8;                            { Every event is filtered }
  1611.     gxPanelCancelEvt            = 9;                            { The user has cancelled the dialog }
  1612.     gxPanelConfirmEvt            = 10;                            { The user has confirmed the dialog }
  1613.     gxPanelDialogEvt            = 11;                            { Event to be handle by dialoghandler }
  1614.     gxPanelOtherEvt                = 12;                            { osEvts, etc. }
  1615.     gxPanelUserWillConfirmEvt    = 13;                            { User has selected confirm, time to parse panel interdependencies }
  1616.  
  1617. { Constants for panel responses to dialog handler calls }
  1618.     
  1619. TYPE
  1620.     gxPanelResult = LONGINT;
  1621.  
  1622.  
  1623. CONST
  1624.     gxPanelNoResult                = 0;
  1625.     gxPanelCancelConfirmation    = 1;                            { Only valid from panelUserWillConfirmEvt - used to keep the dialog from going away }
  1626.  
  1627. { Panel event info record for FilterPanelEvent and HandlePanelEvent messages }
  1628.  
  1629. TYPE
  1630.     gxPanelInfoRecord = RECORD
  1631.         panelEvt:                gxPanelEvent;                            { Why we were called }
  1632.         panelResId:                INTEGER;                                { 'ppnl' resource id of current panel }
  1633.         pDlg:                    DialogPtr;                                { Pointer to dialog }
  1634.         theEvent:                ^EventRecord;                            { Pointer to event }
  1635.         itemHit:                INTEGER;                                { Actual item number as Dialog Mgr thinks }
  1636.         itemCount:                INTEGER;                                { Number of items before your items }
  1637.         evtAction:                INTEGER;                                { Once this event is processed, the action that will result }
  1638.         { (evtAction is only meaningful during filtering) }
  1639.         errorStringId:            INTEGER;                                { STR id of string to put in error alert (0 means no string) }
  1640.         theFormat:                gxFormat;                                { The current format (only meaningful in a format dialog) }
  1641.         refCon:                    Ptr;                                    { refCon passed in PanelSetupRecord }
  1642.     END;
  1643.  
  1644. { Constants for the evtAction field in PanelInfoRecord }
  1645.  
  1646. CONST
  1647.     gxOtherAction                = 0;                            { Current item will not change }
  1648.     gxClosePanelAction            = 1;                            { Panel will be closed }
  1649.     gxCancelDialogAction        = 2;                            { Dialog will be cancelled }
  1650.     gxConfirmDialogAction        = 3;                            { Dialog will be confirmed }
  1651.  
  1652. { Constants for the panelKind field in gxPanelSetupRecord }
  1653.     
  1654. TYPE
  1655.     gxPrintingPanelKind = LONGINT;
  1656.  
  1657. { The gxPanelSetupInfo structure is passed to GXSetupDialogPanel }
  1658.     gxPanelSetupRecord = RECORD
  1659.         panelKind:                gxPrintingPanelKind;
  1660.         panelResId:                INTEGER;
  1661.         resourceRefNum:            INTEGER;
  1662.         refCon:                    Ptr;
  1663.     END;
  1664.  
  1665.  
  1666. CONST
  1667.     gxApplicationPanel            = 0;
  1668.     gxExtensionPanel            = 1;
  1669.     gxDriverPanel                = 2;
  1670.  
  1671. { Constants returned by gxParsePageRange message }
  1672.     
  1673. TYPE
  1674.     gxParsePageRangeResult = LONGINT;
  1675.  
  1676.  
  1677. CONST
  1678.     gxRangeNotParsed            = 0;                            { Default initial value }
  1679.     gxRangeParsed                = 1;                            { Range has been parsed }
  1680.     gxRangeBadFromValue            = 2;                            { From value is bad }
  1681.     gxRangeBadToValue            = 3;                            { To value is bad }
  1682.  
  1683. {
  1684.  
  1685.     STATUS-RELATED CONSTANTS AND TYPES
  1686.  
  1687. }
  1688. { Structure for status messages }
  1689.  
  1690. TYPE
  1691.     gxStatusRecord = RECORD
  1692.         statusType:                INTEGER;                                { One of the ids listed above (nonFatalError, etc. ) }
  1693.         statusId:                INTEGER;                                { Specific status (out of paper, etc.) }
  1694.         statusAlertId:            INTEGER;                                {    Printing alert id (if any) for status }
  1695.         statusOwner:            gxOwnerSignature;                        { Creator type of status owner }
  1696.         statResId:                INTEGER;                                { ID for 'stat' resource }
  1697.         statResIndex:            INTEGER;                                { Index into 'stat' resource for this status }
  1698.         dialogResult:            INTEGER;                                { ID of button string selected on dismissal of printing alert }
  1699.         bufferLen:                INTEGER;                                { Number of bytes in status buffer - total record size must be <= 512 }
  1700.         statusBuffer:            ARRAY [0..0] OF CHAR;                    { User response from alert }
  1701.     END;
  1702.  
  1703. { Constants for statusType field of gxStatusRecord }
  1704.  
  1705. CONST
  1706.     gxNonFatalError                = 1;                            { An error occurred, but the job can continue }
  1707.     gxFatalError                = 2;                            { A fatal error occurred-- halt job }
  1708.     gxPrinterReady                = 3;                            { Tells QDGX to leave alert mode }
  1709.     gxUserAttention                = 4;                            { Signals initiation of a modal alert }
  1710.     gxUserAlert                    = 5;                            { Signals initiation of a moveable modal alert }
  1711.     gxPageTransmission            = 6;                            { Signals page sent to printer, increments page count in strings to user }
  1712.     gxOpenConnectionStatus        = 7;                            { Signals QDGX to begin animation on printer icon }
  1713.     gxInformationalStatus        = 8;                            { Default status type, no side effects }
  1714.     gxSpoolingPageStatus        = 9;                            { Signals page spooled, increments page count in spooling dialog }
  1715.     gxEndStatus                    = 10;                            { Signals end of spooling }
  1716.     gxPercentageStatus            = 11;                            { Signals QDGX as to the amount of the job which is currently complete }
  1717.  
  1718. { Structure for gxWriteStatusToDTPWindow message }
  1719.  
  1720. TYPE
  1721.     gxDisplayRecord = RECORD
  1722.         useText:                BOOLEAN;                                { Use text as opposed to a picture }
  1723.         padByte:                CHAR;
  1724.         hPicture:                Handle;                                    { if !useText, the picture handle }
  1725.         theText:                Str255;                                    { if useText, the text }
  1726.     END;
  1727.  
  1728. {-----------------------------------------------}
  1729. { paper mapping-related constants and types...  }
  1730. {-----------------------------------------------}
  1731.     gxTrayMapping = LONGINT;
  1732.  
  1733.  
  1734. CONST
  1735.     gxDefaultTrayMapping        = 0;
  1736.     gxConfiguredTrayMapping        = 1;
  1737.  
  1738. { ------------------------------------------------------------------------------
  1739.  
  1740.                 API Functions callable only from within message overrides
  1741.  
  1742. -------------------------------------------------------------------------------- }
  1743. {$IFC NOT GENERATINGPOWERPC }
  1744. {$ENDC}
  1745.  
  1746. FUNCTION GXGetJob: gxJob; C;
  1747. FUNCTION GXGetMessageHandlerResFile: INTEGER; C;
  1748. FUNCTION GXSpoolingAborted: BOOLEAN; C;
  1749. FUNCTION GXJobIdle: OSErr; C;
  1750. FUNCTION GXReportStatus(statusID: LONGINT; statusIndex: LONGINT): OSErr; C;
  1751. FUNCTION GXAlertTheUser(VAR statusRec: gxStatusRecord): OSErr; C;
  1752. FUNCTION GXSetupDialogPanel(VAR panelRec: gxPanelSetupRecord): OSErr; C;
  1753. FUNCTION GXCountTrays(VAR numTrays: gxTrayIndex): OSErr; C;
  1754. FUNCTION GXGetTrayName(trayNumber: gxTrayIndex; VAR trayName: Str31): OSErr; C;
  1755. FUNCTION GXSetTrayPaperType(whichTray: gxTrayIndex; aPapertype: gxPaperType): OSErr; C;
  1756. FUNCTION GXGetTrayPaperType(whichTray: gxTrayIndex; aPapertype: gxPaperType): OSErr; C;
  1757. FUNCTION GXGetTrayMapping(VAR trayMapping: gxTrayMapping): OSErr; C;
  1758. PROCEDURE GXCleanupStartJob; C;
  1759. PROCEDURE GXCleanupStartPage; C;
  1760. PROCEDURE GXCleanupOpenConnection; C;
  1761. PROCEDURE GXCleanupStartSendPage; C;
  1762. { ------------------------------------------------------------------------------
  1763.  
  1764.                     Constants and types for Universal Printing Messages
  1765.  
  1766. -------------------------------------------------------------------------------- }
  1767. { Options for gxCreateSpoolFile message }
  1768.  
  1769. CONST
  1770.     gxNoCreateOptions            = $00000000;                    { Just create the file }
  1771.     gxInhibitAlias                = $00000001;                    { Do not create an alias in the PMD folder }
  1772.     gxInhibitUniqueName            = $00000002;                    { Do not append to the filename to make it unique }
  1773.     gxResolveBitmapAlias        = $00000004;                    { Resolve bitmap aliases and duplicate data in file }
  1774.  
  1775. { Options for gxCloseSpoolFile message }
  1776.     gxNoCloseOptions            = $00000000;                    { Just close the file }
  1777.     gxDeleteOnClose                = $00000001;                    { Delete the file rather than closing it }
  1778.     gxUpdateJobData                = $00000002;                    { Write current job information into file prior to closing }
  1779.     gxMakeRemoteFile            = $00000004;                    { Mark job as a remote file }
  1780.  
  1781. { Options for gxCreateImageFile message }
  1782.     gxNoImageFile                = $00000000;                    { Don't create image file }
  1783.     gxMakeImageFile                = $00000001;                    { Create an image file }
  1784.     gxEachPlane                    = $00000002;                    { Only save up planes before rewinding }
  1785.     gxEachPage                    = $00000004;                    { Save up entire pages before rewinding }
  1786.     gxEntireFile                = gxEachPlane + gxEachPage;        { Save up the entire file before rewinding }
  1787.  
  1788. { Options for gxBufferData message }
  1789.     gxNoBufferOptions            = $00000000;
  1790.     gxMakeBufferHex                = $00000001;
  1791.     gxDontSplitBuffer            = $00000002;
  1792.  
  1793. { Structure for gxDumpBuffer and gxFreeBuffer messages }
  1794.  
  1795. TYPE
  1796.     gxPrintingBuffer = RECORD
  1797.         size:                    LONGINT;                                { Size of buffer in bytes }
  1798.         userData:                LONGINT;                                { Client assigned id for the buffer }
  1799.         data:                    ARRAY [0..0] OF CHAR;                    { Array of size bytes }
  1800.     END;
  1801.  
  1802. { Structure for gxRenderPage message }
  1803.     gxPageInfoRecord = RECORD
  1804.         docPageNum:                LONGINT;                                { Number of page being printed }
  1805.         copyNum:                LONGINT;                                { Copy number being printed }
  1806.         formatChanged:            BOOLEAN;                                { True if format changed from last page }
  1807.         pageChanged:            BOOLEAN;                                { True if page contents changed from last page }
  1808.         internalUse:            LONGINT;                                { Private }
  1809.     END;
  1810.  
  1811. { ------------------------------------------------------------------------------
  1812.  
  1813.                                 Universal Printing Messages
  1814.  
  1815. -------------------------------------------------------------------------------- }
  1816.     GXJobIdleProcPtr = ProcPtr;  { FUNCTION GXJobIdle: OSErr; }
  1817.     GXJobIdleUPP = UniversalProcPtr;
  1818.  
  1819. CONST
  1820.     uppGXJobIdleProcInfo = $00000021; { FUNCTION : 2 byte result; }
  1821.  
  1822. FUNCTION NewGXJobIdleProc(userRoutine: GXJobIdleProcPtr): GXJobIdleUPP;
  1823.     {$IFC NOT GENERATINGCFM }
  1824.     INLINE $2E9F;
  1825.     {$ENDC}
  1826.  
  1827. FUNCTION CallGXJobIdleProc(userRoutine: GXJobIdleUPP): OSErr;
  1828.     {$IFC NOT GENERATINGCFM}
  1829.     INLINE $205F, $4E90;
  1830.     {$ENDC}
  1831.     
  1832. TYPE
  1833.     GXJobIdleProc = GXJobIdleUPP;
  1834.  
  1835.  
  1836. FUNCTION Send_GXJobIdle: OSErr; C;
  1837. FUNCTION Forward_GXJobIdle: OSErr; C;
  1838. TYPE
  1839.     GXJobStatusProcPtr = ProcPtr;  { FUNCTION GXJobStatus(VAR pStatus: gxStatusRecord): OSErr; }
  1840.     GXJobStatusUPP = UniversalProcPtr;
  1841.  
  1842. CONST
  1843.     uppGXJobStatusProcInfo = $000000E1; { FUNCTION (4 byte param): 2 byte result; }
  1844.  
  1845. FUNCTION NewGXJobStatusProc(userRoutine: GXJobStatusProcPtr): GXJobStatusUPP;
  1846.     {$IFC NOT GENERATINGCFM }
  1847.     INLINE $2E9F;
  1848.     {$ENDC}
  1849.  
  1850. FUNCTION CallGXJobStatusProc(VAR pStatus: gxStatusRecord; userRoutine: GXJobStatusUPP): OSErr;
  1851.     {$IFC NOT GENERATINGCFM}
  1852.     INLINE $205F, $4E90;
  1853.     {$ENDC}
  1854.     
  1855. TYPE
  1856.     GXJobStatusProc = GXJobStatusUPP;
  1857.  
  1858.  
  1859. FUNCTION Send_GXJobStatus(VAR pStatus: gxStatusRecord): OSErr; C;
  1860. FUNCTION Forward_GXJobStatus(VAR pStatus: gxStatusRecord): OSErr; C;
  1861. TYPE
  1862.     GXPrintingEventProcPtr = ProcPtr;  { FUNCTION GXPrintingEvent(VAR evtRecord: EventRecord; filterEvent: BOOLEAN): OSErr; }
  1863.     GXPrintingEventUPP = UniversalProcPtr;
  1864.  
  1865. CONST
  1866.     uppGXPrintingEventProcInfo = $000001E1; { FUNCTION (4 byte param, 1 byte param): 2 byte result; }
  1867.  
  1868. FUNCTION NewGXPrintingEventProc(userRoutine: GXPrintingEventProcPtr): GXPrintingEventUPP;
  1869.     {$IFC NOT GENERATINGCFM }
  1870.     INLINE $2E9F;
  1871.     {$ENDC}
  1872.  
  1873. FUNCTION CallGXPrintingEventProc(VAR evtRecord: EventRecord; filterEvent: BOOLEAN; userRoutine: GXPrintingEventUPP): OSErr;
  1874.     {$IFC NOT GENERATINGCFM}
  1875.     INLINE $205F, $4E90;
  1876.     {$ENDC}
  1877.     
  1878. TYPE
  1879.     GXPrintingEventProc = GXPrintingEventUPP;
  1880.  
  1881.  
  1882. FUNCTION Send_GXPrintingEvent(VAR evtRecord: EventRecord; filterEvent: BOOLEAN): OSErr; C;
  1883. FUNCTION Forward_GXPrintingEvent(VAR evtRecord: EventRecord; filterEvent: BOOLEAN): OSErr; C;
  1884. TYPE
  1885.     GXJobDefaultFormatDialogProcPtr = ProcPtr;  { FUNCTION GXJobDefaultFormatDialog(VAR dlgResult: gxDialogResult): OSErr; }
  1886.     GXJobDefaultFormatDialogUPP = UniversalProcPtr;
  1887.  
  1888. CONST
  1889.     uppGXJobDefaultFormatDialogProcInfo = $000000E1; { FUNCTION (4 byte param): 2 byte result; }
  1890.  
  1891. FUNCTION NewGXJobDefaultFormatDialogProc(userRoutine: GXJobDefaultFormatDialogProcPtr): GXJobDefaultFormatDialogUPP;
  1892.     {$IFC NOT GENERATINGCFM }
  1893.     INLINE $2E9F;
  1894.     {$ENDC}
  1895.  
  1896. FUNCTION CallGXJobDefaultFormatDialogProc(VAR dlgResult: gxDialogResult; userRoutine: GXJobDefaultFormatDialogUPP): OSErr;
  1897.     {$IFC NOT GENERATINGCFM}
  1898.     INLINE $205F, $4E90;
  1899.     {$ENDC}
  1900.     
  1901. TYPE
  1902.     GXJobDefaultFormatDialogProc = GXJobDefaultFormatDialogUPP;
  1903.  
  1904.  
  1905. FUNCTION Send_GXJobDefaultFormatDialog(VAR dlgResult: gxDialogResult): OSErr; C;
  1906. FUNCTION Forward_GXJobDefaultFormatDialog(VAR dlgResult: gxDialogResult): OSErr; C;
  1907. TYPE
  1908.     GXFormatDialogProcPtr = ProcPtr;  { FUNCTION GXFormatDialog(theFormat: gxFormat; title: StringPtr; VAR dlgResult: gxDialogResult): OSErr; }
  1909.     GXFormatDialogUPP = UniversalProcPtr;
  1910.  
  1911. CONST
  1912.     uppGXFormatDialogProcInfo = $00000FE1; { FUNCTION (4 byte param, 4 byte param, 4 byte param): 2 byte result; }
  1913.  
  1914. FUNCTION NewGXFormatDialogProc(userRoutine: GXFormatDialogProcPtr): GXFormatDialogUPP;
  1915.     {$IFC NOT GENERATINGCFM }
  1916.     INLINE $2E9F;
  1917.     {$ENDC}
  1918.  
  1919. FUNCTION CallGXFormatDialogProc(theFormat: gxFormat; title: StringPtr; VAR dlgResult: gxDialogResult; userRoutine: GXFormatDialogUPP): OSErr;
  1920.     {$IFC NOT GENERATINGCFM}
  1921.     INLINE $205F, $4E90;
  1922.     {$ENDC}
  1923.     
  1924. TYPE
  1925.     GXFormatDialogProc = GXFormatDialogUPP;
  1926.  
  1927.  
  1928. FUNCTION Send_GXFormatDialog(theFormat: gxFormat; title: StringPtr; VAR dlgResult: gxDialogResult): OSErr; C;
  1929. FUNCTION Forward_GXFormatDialog(theFormat: gxFormat; title: StringPtr; VAR dlgResult: gxDialogResult): OSErr; C;
  1930. TYPE
  1931.     GXJobPrintDialogProcPtr = ProcPtr;  { FUNCTION GXJobPrintDialog(VAR dlgResult: gxDialogResult): OSErr; }
  1932.     GXJobPrintDialogUPP = UniversalProcPtr;
  1933.  
  1934. CONST
  1935.     uppGXJobPrintDialogProcInfo = $000000E1; { FUNCTION (4 byte param): 2 byte result; }
  1936.  
  1937. FUNCTION NewGXJobPrintDialogProc(userRoutine: GXJobPrintDialogProcPtr): GXJobPrintDialogUPP;
  1938.     {$IFC NOT GENERATINGCFM }
  1939.     INLINE $2E9F;
  1940.     {$ENDC}
  1941.  
  1942. FUNCTION CallGXJobPrintDialogProc(VAR dlgResult: gxDialogResult; userRoutine: GXJobPrintDialogUPP): OSErr;
  1943.     {$IFC NOT GENERATINGCFM}
  1944.     INLINE $205F, $4E90;
  1945.     {$ENDC}
  1946.     
  1947. TYPE
  1948.     GXJobPrintDialogProc = GXJobPrintDialogUPP;
  1949.  
  1950.  
  1951. FUNCTION Send_GXJobPrintDialog(VAR dlgResult: gxDialogResult): OSErr; C;
  1952. FUNCTION Forward_GXJobPrintDialog(VAR dlgResult: gxDialogResult): OSErr; C;
  1953. TYPE
  1954.     GXFilterPanelEventProcPtr = ProcPtr;  { FUNCTION GXFilterPanelEvent(VAR pHitInfo: gxPanelInfoRecord; VAR returnImmed: BOOLEAN): OSErr; }
  1955.     GXFilterPanelEventUPP = UniversalProcPtr;
  1956.  
  1957. CONST
  1958.     uppGXFilterPanelEventProcInfo = $000003E1; { FUNCTION (4 byte param, 4 byte param): 2 byte result; }
  1959.  
  1960. FUNCTION NewGXFilterPanelEventProc(userRoutine: GXFilterPanelEventProcPtr): GXFilterPanelEventUPP;
  1961.     {$IFC NOT GENERATINGCFM }
  1962.     INLINE $2E9F;
  1963.     {$ENDC}
  1964.  
  1965. FUNCTION CallGXFilterPanelEventProc(VAR pHitInfo: gxPanelInfoRecord; VAR returnImmed: BOOLEAN; userRoutine: GXFilterPanelEventUPP): OSErr;
  1966.     {$IFC NOT GENERATINGCFM}
  1967.     INLINE $205F, $4E90;
  1968.     {$ENDC}
  1969.     
  1970. TYPE
  1971.     GXFilterPanelEventProc = GXFilterPanelEventUPP;
  1972.  
  1973.  
  1974. FUNCTION Send_GXFilterPanelEvent(VAR pHitInfo: gxPanelInfoRecord; VAR returnImmed: BOOLEAN): OSErr; C;
  1975. TYPE
  1976.     GXHandlePanelEventProcPtr = ProcPtr;  { FUNCTION GXHandlePanelEvent(VAR pHitInfo: gxPanelInfoRecord; VAR panelResponse: gxPanelResult): OSErr; }
  1977.     GXHandlePanelEventUPP = UniversalProcPtr;
  1978.  
  1979. CONST
  1980.     uppGXHandlePanelEventProcInfo = $000003E1; { FUNCTION (4 byte param, 4 byte param): 2 byte result; }
  1981.  
  1982. FUNCTION NewGXHandlePanelEventProc(userRoutine: GXHandlePanelEventProcPtr): GXHandlePanelEventUPP;
  1983.     {$IFC NOT GENERATINGCFM }
  1984.     INLINE $2E9F;
  1985.     {$ENDC}
  1986.  
  1987. FUNCTION CallGXHandlePanelEventProc(VAR pHitInfo: gxPanelInfoRecord; VAR panelResponse: gxPanelResult; userRoutine: GXHandlePanelEventUPP): OSErr;
  1988.     {$IFC NOT GENERATINGCFM}
  1989.     INLINE $205F, $4E90;
  1990.     {$ENDC}
  1991.     
  1992. TYPE
  1993.     GXHandlePanelEventProc = GXHandlePanelEventUPP;
  1994.  
  1995.  
  1996. FUNCTION Send_GXHandlePanelEvent(VAR pHitInfo: gxPanelInfoRecord; VAR panelResponse: gxPanelResult): OSErr; C;
  1997. TYPE
  1998.     GXParsePageRangeProcPtr = ProcPtr;  { FUNCTION GXParsePageRange(fromString: StringPtr; toString: StringPtr; VAR result: gxParsePageRangeResult): OSErr; }
  1999.     GXParsePageRangeUPP = UniversalProcPtr;
  2000.  
  2001. CONST
  2002.     uppGXParsePageRangeProcInfo = $00000FE1; { FUNCTION (4 byte param, 4 byte param, 4 byte param): 2 byte result; }
  2003.  
  2004. FUNCTION NewGXParsePageRangeProc(userRoutine: GXParsePageRangeProcPtr): GXParsePageRangeUPP;
  2005.     {$IFC NOT GENERATINGCFM }
  2006.     INLINE $2E9F;
  2007.     {$ENDC}
  2008.  
  2009. FUNCTION CallGXParsePageRangeProc(fromString: StringPtr; toString: StringPtr; VAR result: gxParsePageRangeResult; userRoutine: GXParsePageRangeUPP): OSErr;
  2010.     {$IFC NOT GENERATINGCFM}
  2011.     INLINE $205F, $4E90;
  2012.     {$ENDC}
  2013.     
  2014. TYPE
  2015.     GXParsePageRangeProc = GXParsePageRangeUPP;
  2016.  
  2017.  
  2018. FUNCTION Send_GXParsePageRange(fromString: StringPtr; toString: StringPtr; VAR result: gxParsePageRangeResult): OSErr; C;
  2019. FUNCTION Forward_GXParsePageRange(fromString: StringPtr; toString: StringPtr; VAR result: gxParsePageRangeResult): OSErr; C;
  2020. TYPE
  2021.     GXDefaultJobProcPtr = ProcPtr;  { FUNCTION GXDefaultJob: OSErr; }
  2022.     GXDefaultJobUPP = UniversalProcPtr;
  2023.  
  2024. CONST
  2025.     uppGXDefaultJobProcInfo = $00000021; { FUNCTION : 2 byte result; }
  2026.  
  2027. FUNCTION NewGXDefaultJobProc(userRoutine: GXDefaultJobProcPtr): GXDefaultJobUPP;
  2028.     {$IFC NOT GENERATINGCFM }
  2029.     INLINE $2E9F;
  2030.     {$ENDC}
  2031.  
  2032. FUNCTION CallGXDefaultJobProc(userRoutine: GXDefaultJobUPP): OSErr;
  2033.     {$IFC NOT GENERATINGCFM}
  2034.     INLINE $205F, $4E90;
  2035.     {$ENDC}
  2036.     
  2037. TYPE
  2038.     GXDefaultJobProc = GXDefaultJobUPP;
  2039.  
  2040.  
  2041. FUNCTION Send_GXDefaultJob: OSErr; C;
  2042. FUNCTION Forward_GXDefaultJob: OSErr; C;
  2043. TYPE
  2044.     GXDefaultFormatProcPtr = ProcPtr;  { FUNCTION GXDefaultFormat(theFormat: gxFormat): OSErr; }
  2045.     GXDefaultFormatUPP = UniversalProcPtr;
  2046.  
  2047. CONST
  2048.     uppGXDefaultFormatProcInfo = $000000E1; { FUNCTION (4 byte param): 2 byte result; }
  2049.  
  2050. FUNCTION NewGXDefaultFormatProc(userRoutine: GXDefaultFormatProcPtr): GXDefaultFormatUPP;
  2051.     {$IFC NOT GENERATINGCFM }
  2052.     INLINE $2E9F;
  2053.     {$ENDC}
  2054.  
  2055. FUNCTION CallGXDefaultFormatProc(theFormat: gxFormat; userRoutine: GXDefaultFormatUPP): OSErr;
  2056.     {$IFC NOT GENERATINGCFM}
  2057.     INLINE $205F, $4E90;
  2058.     {$ENDC}
  2059.     
  2060. TYPE
  2061.     GXDefaultFormatProc = GXDefaultFormatUPP;
  2062.  
  2063.  
  2064. FUNCTION Send_GXDefaultFormat(theFormat: gxFormat): OSErr; C;
  2065. FUNCTION Forward_GXDefaultFormat(theFormat: gxFormat): OSErr; C;
  2066. TYPE
  2067.     GXDefaultPaperTypeProcPtr = ProcPtr;  { FUNCTION GXDefaultPaperType(thePaperType: gxPaperType): OSErr; }
  2068.     GXDefaultPaperTypeUPP = UniversalProcPtr;
  2069.  
  2070. CONST
  2071.     uppGXDefaultPaperTypeProcInfo = $000000E1; { FUNCTION (4 byte param): 2 byte result; }
  2072.  
  2073. FUNCTION NewGXDefaultPaperTypeProc(userRoutine: GXDefaultPaperTypeProcPtr): GXDefaultPaperTypeUPP;
  2074.     {$IFC NOT GENERATINGCFM }
  2075.     INLINE $2E9F;
  2076.     {$ENDC}
  2077.  
  2078. FUNCTION CallGXDefaultPaperTypeProc(thePaperType: gxPaperType; userRoutine: GXDefaultPaperTypeUPP): OSErr;
  2079.     {$IFC NOT GENERATINGCFM}
  2080.     INLINE $205F, $4E90;
  2081.     {$ENDC}
  2082.     
  2083. TYPE
  2084.     GXDefaultPaperTypeProc = GXDefaultPaperTypeUPP;
  2085.  
  2086.  
  2087. FUNCTION Send_GXDefaultPaperType(thePaperType: gxPaperType): OSErr; C;
  2088. FUNCTION Forward_GXDefaultPaperType(thePaperType: gxPaperType): OSErr; C;
  2089. TYPE
  2090.     GXDefaultPrinterProcPtr = ProcPtr;  { FUNCTION GXDefaultPrinter(thePrinter: gxPrinter): OSErr; }
  2091.     GXDefaultPrinterUPP = UniversalProcPtr;
  2092.  
  2093. CONST
  2094.     uppGXDefaultPrinterProcInfo = $000000E1; { FUNCTION (4 byte param): 2 byte result; }
  2095.  
  2096. FUNCTION NewGXDefaultPrinterProc(userRoutine: GXDefaultPrinterProcPtr): GXDefaultPrinterUPP;
  2097.     {$IFC NOT GENERATINGCFM }
  2098.     INLINE $2E9F;
  2099.     {$ENDC}
  2100.  
  2101. FUNCTION CallGXDefaultPrinterProc(thePrinter: gxPrinter; userRoutine: GXDefaultPrinterUPP): OSErr;
  2102.     {$IFC NOT GENERATINGCFM}
  2103.     INLINE $205F, $4E90;
  2104.     {$ENDC}
  2105.     
  2106. TYPE
  2107.     GXDefaultPrinterProc = GXDefaultPrinterUPP;
  2108.  
  2109.  
  2110. FUNCTION Send_GXDefaultPrinter(thePrinter: gxPrinter): OSErr; C;
  2111. FUNCTION Forward_GXDefaultPrinter(thePrinter: gxPrinter): OSErr; C;
  2112. TYPE
  2113.     GXCreateSpoolFileProcPtr = ProcPtr;  { FUNCTION GXCreateSpoolFile(pFileSpec: FSSpecPtr; createOptions: LONGINT; VAR theSpoolFile: gxSpoolFile): OSErr; }
  2114.     GXCreateSpoolFileUPP = UniversalProcPtr;
  2115.  
  2116. CONST
  2117.     uppGXCreateSpoolFileProcInfo = $00000FE1; { FUNCTION (4 byte param, 4 byte param, 4 byte param): 2 byte result; }
  2118.  
  2119. FUNCTION NewGXCreateSpoolFileProc(userRoutine: GXCreateSpoolFileProcPtr): GXCreateSpoolFileUPP;
  2120.     {$IFC NOT GENERATINGCFM }
  2121.     INLINE $2E9F;
  2122.     {$ENDC}
  2123.  
  2124. FUNCTION CallGXCreateSpoolFileProc(pFileSpec: FSSpecPtr; createOptions: LONGINT; VAR theSpoolFile: gxSpoolFile; userRoutine: GXCreateSpoolFileUPP): OSErr;
  2125.     {$IFC NOT GENERATINGCFM}
  2126.     INLINE $205F, $4E90;
  2127.     {$ENDC}
  2128.     
  2129. TYPE
  2130.     GXCreateSpoolFileProc = GXCreateSpoolFileUPP;
  2131.  
  2132.  
  2133. FUNCTION Send_GXCreateSpoolFile(pFileSpec: FSSpecPtr; createOptions: LONGINT; VAR theSpoolFile: gxSpoolFile): OSErr; C;
  2134. FUNCTION Forward_GXCreateSpoolFile(pFileSpec: FSSpecPtr; createOptions: LONGINT; VAR theSpoolFile: gxSpoolFile): OSErr; C;
  2135. TYPE
  2136.     GXSpoolPageProcPtr = ProcPtr;  { FUNCTION GXSpoolPage(theSpoolFile: gxSpoolFile; theFormat: gxFormat; thePage: gxShape): OSErr; }
  2137.     GXSpoolPageUPP = UniversalProcPtr;
  2138.  
  2139. CONST
  2140.     uppGXSpoolPageProcInfo = $00000FE1; { FUNCTION (4 byte param, 4 byte param, 4 byte param): 2 byte result; }
  2141.  
  2142. FUNCTION NewGXSpoolPageProc(userRoutine: GXSpoolPageProcPtr): GXSpoolPageUPP;
  2143.     {$IFC NOT GENERATINGCFM }
  2144.     INLINE $2E9F;
  2145.     {$ENDC}
  2146.  
  2147. FUNCTION CallGXSpoolPageProc(theSpoolFile: gxSpoolFile; theFormat: gxFormat; thePage: gxShape; userRoutine: GXSpoolPageUPP): OSErr;
  2148.     {$IFC NOT GENERATINGCFM}
  2149.     INLINE $205F, $4E90;
  2150.     {$ENDC}
  2151.     
  2152. TYPE
  2153.     GXSpoolPageProc = GXSpoolPageUPP;
  2154.  
  2155.  
  2156. FUNCTION Send_GXSpoolPage(theSpoolFile: gxSpoolFile; theFormat: gxFormat; thePage: gxShape): OSErr; C;
  2157. FUNCTION Forward_GXSpoolPage(theSpoolFile: gxSpoolFile; theFormat: gxFormat; thePage: gxShape): OSErr; C;
  2158. TYPE
  2159.     GXSpoolDataProcPtr = ProcPtr;  { FUNCTION GXSpoolData(theSpoolFile: gxSpoolFile; data: Ptr; VAR length: LONGINT): OSErr; }
  2160.     GXSpoolDataUPP = UniversalProcPtr;
  2161.  
  2162. CONST
  2163.     uppGXSpoolDataProcInfo = $00000FE1; { FUNCTION (4 byte param, 4 byte param, 4 byte param): 2 byte result; }
  2164.  
  2165. FUNCTION NewGXSpoolDataProc(userRoutine: GXSpoolDataProcPtr): GXSpoolDataUPP;
  2166.     {$IFC NOT GENERATINGCFM }
  2167.     INLINE $2E9F;
  2168.     {$ENDC}
  2169.  
  2170. FUNCTION CallGXSpoolDataProc(theSpoolFile: gxSpoolFile; data: Ptr; VAR length: LONGINT; userRoutine: GXSpoolDataUPP): OSErr;
  2171.     {$IFC NOT GENERATINGCFM}
  2172.     INLINE $205F, $4E90;
  2173.     {$ENDC}
  2174.     
  2175. TYPE
  2176.     GXSpoolDataProc = GXSpoolDataUPP;
  2177.  
  2178.  
  2179. FUNCTION Send_GXSpoolData(theSpoolFile: gxSpoolFile; data: Ptr; VAR length: LONGINT): OSErr; C;
  2180. FUNCTION Forward_GXSpoolData(theSpoolFile: gxSpoolFile; data: Ptr; VAR length: LONGINT): OSErr; C;
  2181. TYPE
  2182.     GXSpoolResourceProcPtr = ProcPtr;  { FUNCTION GXSpoolResource(theSpoolFile: gxSpoolFile; theResource: Handle; theType: ResType; id: LONGINT): OSErr; }
  2183.     GXSpoolResourceUPP = UniversalProcPtr;
  2184.  
  2185. CONST
  2186.     uppGXSpoolResourceProcInfo = $00003FE1; { FUNCTION (4 byte param, 4 byte param, 4 byte param, 4 byte param): 2 byte result; }
  2187.  
  2188. FUNCTION NewGXSpoolResourceProc(userRoutine: GXSpoolResourceProcPtr): GXSpoolResourceUPP;
  2189.     {$IFC NOT GENERATINGCFM }
  2190.     INLINE $2E9F;
  2191.     {$ENDC}
  2192.  
  2193. FUNCTION CallGXSpoolResourceProc(theSpoolFile: gxSpoolFile; theResource: Handle; theType: ResType; id: LONGINT; userRoutine: GXSpoolResourceUPP): OSErr;
  2194.     {$IFC NOT GENERATINGCFM}
  2195.     INLINE $205F, $4E90;
  2196.     {$ENDC}
  2197.     
  2198. TYPE
  2199.     GXSpoolResourceProc = GXSpoolResourceUPP;
  2200.  
  2201.  
  2202. FUNCTION Send_GXSpoolResource(theSpoolFile: gxSpoolFile; theResource: Handle; theType: ResType; id: LONGINT): OSErr; C;
  2203. FUNCTION Forward_GXSpoolResource(theSpoolFile: gxSpoolFile; theResource: Handle; theType: ResType; id: LONGINT): OSErr; C;
  2204. TYPE
  2205.     GXCompleteSpoolFileProcPtr = ProcPtr;  { FUNCTION GXCompleteSpoolFile(theSpoolFile: gxSpoolFile): OSErr; }
  2206.     GXCompleteSpoolFileUPP = UniversalProcPtr;
  2207.  
  2208. CONST
  2209.     uppGXCompleteSpoolFileProcInfo = $000000E1; { FUNCTION (4 byte param): 2 byte result; }
  2210.  
  2211. FUNCTION NewGXCompleteSpoolFileProc(userRoutine: GXCompleteSpoolFileProcPtr): GXCompleteSpoolFileUPP;
  2212.     {$IFC NOT GENERATINGCFM }
  2213.     INLINE $2E9F;
  2214.     {$ENDC}
  2215.  
  2216. FUNCTION CallGXCompleteSpoolFileProc(theSpoolFile: gxSpoolFile; userRoutine: GXCompleteSpoolFileUPP): OSErr;
  2217.     {$IFC NOT GENERATINGCFM}
  2218.     INLINE $205F, $4E90;
  2219.     {$ENDC}
  2220.     
  2221. TYPE
  2222.     GXCompleteSpoolFileProc = GXCompleteSpoolFileUPP;
  2223.  
  2224.  
  2225. FUNCTION Send_GXCompleteSpoolFile(theSpoolFile: gxSpoolFile): OSErr; C;
  2226. FUNCTION Forward_GXCompleteSpoolFile(theSpoolFile: gxSpoolFile): OSErr; C;
  2227. TYPE
  2228.     GXCountPagesProcPtr = ProcPtr;  { FUNCTION GXCountPages(theSpoolFile: gxSpoolFile; VAR numPages: LONGINT): OSErr; }
  2229.     GXCountPagesUPP = UniversalProcPtr;
  2230.  
  2231. CONST
  2232.     uppGXCountPagesProcInfo = $000003E1; { FUNCTION (4 byte param, 4 byte param): 2 byte result; }
  2233.  
  2234. FUNCTION NewGXCountPagesProc(userRoutine: GXCountPagesProcPtr): GXCountPagesUPP;
  2235.     {$IFC NOT GENERATINGCFM }
  2236.     INLINE $2E9F;
  2237.     {$ENDC}
  2238.  
  2239. FUNCTION CallGXCountPagesProc(theSpoolFile: gxSpoolFile; VAR numPages: LONGINT; userRoutine: GXCountPagesUPP): OSErr;
  2240.     {$IFC NOT GENERATINGCFM}
  2241.     INLINE $205F, $4E90;
  2242.     {$ENDC}
  2243.     
  2244. TYPE
  2245.     GXCountPagesProc = GXCountPagesUPP;
  2246.  
  2247.  
  2248. FUNCTION Send_GXCountPages(theSpoolFile: gxSpoolFile; VAR numPages: LONGINT): OSErr; C;
  2249. FUNCTION Forward_GXCountPages(theSpoolFile: gxSpoolFile; VAR numPages: LONGINT): OSErr; C;
  2250. TYPE
  2251.     GXDespoolPageProcPtr = ProcPtr;  { FUNCTION GXDespoolPage(theSpoolFile: gxSpoolFile; numPages: LONGINT; theFormat: gxFormat; VAR thePage: gxShape; VAR formatChanged: BOOLEAN): OSErr; }
  2252.     GXDespoolPageUPP = UniversalProcPtr;
  2253.  
  2254. CONST
  2255.     uppGXDespoolPageProcInfo = $0000FFE1; { FUNCTION (4 byte param, 4 byte param, 4 byte param, 4 byte param, 4 byte param): 2 byte result; }
  2256.  
  2257. FUNCTION NewGXDespoolPageProc(userRoutine: GXDespoolPageProcPtr): GXDespoolPageUPP;
  2258.     {$IFC NOT GENERATINGCFM }
  2259.     INLINE $2E9F;
  2260.     {$ENDC}
  2261.  
  2262. FUNCTION CallGXDespoolPageProc(theSpoolFile: gxSpoolFile; numPages: LONGINT; theFormat: gxFormat; VAR thePage: gxShape; VAR formatChanged: BOOLEAN; userRoutine: GXDespoolPageUPP): OSErr;
  2263.     {$IFC NOT GENERATINGCFM}
  2264.     INLINE $205F, $4E90;
  2265.     {$ENDC}
  2266.     
  2267. TYPE
  2268.     GXDespoolPageProc = GXDespoolPageUPP;
  2269.  
  2270.  
  2271. FUNCTION Send_GXDespoolPage(theSpoolFile: gxSpoolFile; numPages: LONGINT; theFormat: gxFormat; VAR thePage: gxShape; VAR formatChanged: BOOLEAN): OSErr; C;
  2272. FUNCTION Forward_GXDespoolPage(theSpoolFile: gxSpoolFile; numPages: LONGINT; theFormat: gxFormat; VAR thePage: gxShape; VAR formatChanged: BOOLEAN): OSErr; C;
  2273. TYPE
  2274.     GXDespoolDataProcPtr = ProcPtr;  { FUNCTION GXDespoolData(theSpoolFile: gxSpoolFile; data: Ptr; VAR length: LONGINT): OSErr; }
  2275.     GXDespoolDataUPP = UniversalProcPtr;
  2276.  
  2277. CONST
  2278.     uppGXDespoolDataProcInfo = $00000FE1; { FUNCTION (4 byte param, 4 byte param, 4 byte param): 2 byte result; }
  2279.  
  2280. FUNCTION NewGXDespoolDataProc(userRoutine: GXDespoolDataProcPtr): GXDespoolDataUPP;
  2281.     {$IFC NOT GENERATINGCFM }
  2282.     INLINE $2E9F;
  2283.     {$ENDC}
  2284.  
  2285. FUNCTION CallGXDespoolDataProc(theSpoolFile: gxSpoolFile; data: Ptr; VAR length: LONGINT; userRoutine: GXDespoolDataUPP): OSErr;
  2286.     {$IFC NOT GENERATINGCFM}
  2287.     INLINE $205F, $4E90;
  2288.     {$ENDC}
  2289.     
  2290. TYPE
  2291.     GXDespoolDataProc = GXDespoolDataUPP;
  2292.  
  2293.  
  2294. FUNCTION Send_GXDespoolData(theSpoolFile: gxSpoolFile; data: Ptr; VAR length: LONGINT): OSErr; C;
  2295. FUNCTION Forward_GXDespoolData(theSpoolFile: gxSpoolFile; data: Ptr; VAR length: LONGINT): OSErr; C;
  2296. TYPE
  2297.     GXDespoolResourceProcPtr = ProcPtr;  { FUNCTION GXDespoolResource(theSpoolFile: gxSpoolFile; theType: ResType; id: LONGINT; VAR theResource: Handle): OSErr; }
  2298.     GXDespoolResourceUPP = UniversalProcPtr;
  2299.  
  2300. CONST
  2301.     uppGXDespoolResourceProcInfo = $00003FE1; { FUNCTION (4 byte param, 4 byte param, 4 byte param, 4 byte param): 2 byte result; }
  2302.  
  2303. FUNCTION NewGXDespoolResourceProc(userRoutine: GXDespoolResourceProcPtr): GXDespoolResourceUPP;
  2304.     {$IFC NOT GENERATINGCFM }
  2305.     INLINE $2E9F;
  2306.     {$ENDC}
  2307.  
  2308. FUNCTION CallGXDespoolResourceProc(theSpoolFile: gxSpoolFile; theType: ResType; id: LONGINT; VAR theResource: Handle; userRoutine: GXDespoolResourceUPP): OSErr;
  2309.     {$IFC NOT GENERATINGCFM}
  2310.     INLINE $205F, $4E90;
  2311.     {$ENDC}
  2312.     
  2313. TYPE
  2314.     GXDespoolResourceProc = GXDespoolResourceUPP;
  2315.  
  2316.  
  2317. FUNCTION Send_GXDespoolResource(theSpoolFile: gxSpoolFile; theType: ResType; id: LONGINT; VAR theResource: Handle): OSErr; C;
  2318. FUNCTION Forward_GXDespoolResource(theSpoolFile: gxSpoolFile; theType: ResType; id: LONGINT; VAR theResource: Handle): OSErr; C;
  2319. TYPE
  2320.     GXCloseSpoolFileProcPtr = ProcPtr;  { FUNCTION GXCloseSpoolFile(theSpoolFile: gxSpoolFile; closeOptions: LONGINT): OSErr; }
  2321.     GXCloseSpoolFileUPP = UniversalProcPtr;
  2322.  
  2323. CONST
  2324.     uppGXCloseSpoolFileProcInfo = $000003E1; { FUNCTION (4 byte param, 4 byte param): 2 byte result; }
  2325.  
  2326. FUNCTION NewGXCloseSpoolFileProc(userRoutine: GXCloseSpoolFileProcPtr): GXCloseSpoolFileUPP;
  2327.     {$IFC NOT GENERATINGCFM }
  2328.     INLINE $2E9F;
  2329.     {$ENDC}
  2330.  
  2331. FUNCTION CallGXCloseSpoolFileProc(theSpoolFile: gxSpoolFile; closeOptions: LONGINT; userRoutine: GXCloseSpoolFileUPP): OSErr;
  2332.     {$IFC NOT GENERATINGCFM}
  2333.     INLINE $205F, $4E90;
  2334.     {$ENDC}
  2335.     
  2336. TYPE
  2337.     GXCloseSpoolFileProc = GXCloseSpoolFileUPP;
  2338.  
  2339.  
  2340. FUNCTION Send_GXCloseSpoolFile(theSpoolFile: gxSpoolFile; closeOptions: LONGINT): OSErr; C;
  2341. FUNCTION Forward_GXCloseSpoolFile(theSpoolFile: gxSpoolFile; closeOptions: LONGINT): OSErr; C;
  2342. TYPE
  2343.     GXStartJobProcPtr = ProcPtr;  { FUNCTION GXStartJob(docName: StringPtr; pageCount: LONGINT): OSErr; }
  2344.     GXStartJobUPP = UniversalProcPtr;
  2345.  
  2346. CONST
  2347.     uppGXStartJobProcInfo = $000003E1; { FUNCTION (4 byte param, 4 byte param): 2 byte result; }
  2348.  
  2349. FUNCTION NewGXStartJobProc(userRoutine: GXStartJobProcPtr): GXStartJobUPP;
  2350.     {$IFC NOT GENERATINGCFM }
  2351.     INLINE $2E9F;
  2352.     {$ENDC}
  2353.  
  2354. FUNCTION CallGXStartJobProc(docName: StringPtr; pageCount: LONGINT; userRoutine: GXStartJobUPP): OSErr;
  2355.     {$IFC NOT GENERATINGCFM}
  2356.     INLINE $205F, $4E90;
  2357.     {$ENDC}
  2358.     
  2359. TYPE
  2360.     GXStartJobProc = GXStartJobUPP;
  2361.  
  2362.  
  2363. FUNCTION Send_GXStartJob(docName: StringPtr; pageCount: LONGINT): OSErr; C;
  2364. FUNCTION Forward_GXStartJob(docName: StringPtr; pageCount: LONGINT): OSErr; C;
  2365. TYPE
  2366.     GXFinishJobProcPtr = ProcPtr;  { FUNCTION GXFinishJob: OSErr; }
  2367.     GXFinishJobUPP = UniversalProcPtr;
  2368.  
  2369. CONST
  2370.     uppGXFinishJobProcInfo = $00000021; { FUNCTION : 2 byte result; }
  2371.  
  2372. FUNCTION NewGXFinishJobProc(userRoutine: GXFinishJobProcPtr): GXFinishJobUPP;
  2373.     {$IFC NOT GENERATINGCFM }
  2374.     INLINE $2E9F;
  2375.     {$ENDC}
  2376.  
  2377. FUNCTION CallGXFinishJobProc(userRoutine: GXFinishJobUPP): OSErr;
  2378.     {$IFC NOT GENERATINGCFM}
  2379.     INLINE $205F, $4E90;
  2380.     {$ENDC}
  2381.     
  2382. TYPE
  2383.     GXFinishJobProc = GXFinishJobUPP;
  2384.  
  2385.  
  2386. FUNCTION Send_GXFinishJob: OSErr; C;
  2387. FUNCTION Forward_GXFinishJob: OSErr; C;
  2388. TYPE
  2389.     GXStartPageProcPtr = ProcPtr;  { FUNCTION GXStartPage(theFormat: gxFormat; numViewPorts: LONGINT; VAR viewPortList: gxViewPort): OSErr; }
  2390.     GXStartPageUPP = UniversalProcPtr;
  2391.  
  2392. CONST
  2393.     uppGXStartPageProcInfo = $00000FE1; { FUNCTION (4 byte param, 4 byte param, 4 byte param): 2 byte result; }
  2394.  
  2395. FUNCTION NewGXStartPageProc(userRoutine: GXStartPageProcPtr): GXStartPageUPP;
  2396.     {$IFC NOT GENERATINGCFM }
  2397.     INLINE $2E9F;
  2398.     {$ENDC}
  2399.  
  2400. FUNCTION CallGXStartPageProc(theFormat: gxFormat; numViewPorts: LONGINT; VAR viewPortList: gxViewPort; userRoutine: GXStartPageUPP): OSErr;
  2401.     {$IFC NOT GENERATINGCFM}
  2402.     INLINE $205F, $4E90;
  2403.     {$ENDC}
  2404.     
  2405. TYPE
  2406.     GXStartPageProc = GXStartPageUPP;
  2407.  
  2408.  
  2409. FUNCTION Send_GXStartPage(theFormat: gxFormat; numViewPorts: LONGINT; VAR viewPortList: gxViewPort): OSErr; C;
  2410. FUNCTION Forward_GXStartPage(theFormat: gxFormat; numViewPorts: LONGINT; VAR viewPortList: gxViewPort): OSErr; C;
  2411. TYPE
  2412.     GXFinishPageProcPtr = ProcPtr;  { FUNCTION GXFinishPage: OSErr; }
  2413.     GXFinishPageUPP = UniversalProcPtr;
  2414.  
  2415. CONST
  2416.     uppGXFinishPageProcInfo = $00000021; { FUNCTION : 2 byte result; }
  2417.  
  2418. FUNCTION NewGXFinishPageProc(userRoutine: GXFinishPageProcPtr): GXFinishPageUPP;
  2419.     {$IFC NOT GENERATINGCFM }
  2420.     INLINE $2E9F;
  2421.     {$ENDC}
  2422.  
  2423. FUNCTION CallGXFinishPageProc(userRoutine: GXFinishPageUPP): OSErr;
  2424.     {$IFC NOT GENERATINGCFM}
  2425.     INLINE $205F, $4E90;
  2426.     {$ENDC}
  2427.     
  2428. TYPE
  2429.     GXFinishPageProc = GXFinishPageUPP;
  2430.  
  2431.  
  2432. FUNCTION Send_GXFinishPage: OSErr; C;
  2433. FUNCTION Forward_GXFinishPage: OSErr; C;
  2434. TYPE
  2435.     GXPrintPageProcPtr = ProcPtr;  { FUNCTION GXPrintPage(theFormat: gxFormat; thePage: gxShape): OSErr; }
  2436.     GXPrintPageUPP = UniversalProcPtr;
  2437.  
  2438. CONST
  2439.     uppGXPrintPageProcInfo = $000003E1; { FUNCTION (4 byte param, 4 byte param): 2 byte result; }
  2440.  
  2441. FUNCTION NewGXPrintPageProc(userRoutine: GXPrintPageProcPtr): GXPrintPageUPP;
  2442.     {$IFC NOT GENERATINGCFM }
  2443.     INLINE $2E9F;
  2444.     {$ENDC}
  2445.  
  2446. FUNCTION CallGXPrintPageProc(theFormat: gxFormat; thePage: gxShape; userRoutine: GXPrintPageUPP): OSErr;
  2447.     {$IFC NOT GENERATINGCFM}
  2448.     INLINE $205F, $4E90;
  2449.     {$ENDC}
  2450.     
  2451. TYPE
  2452.     GXPrintPageProc = GXPrintPageUPP;
  2453.  
  2454.  
  2455. FUNCTION Send_GXPrintPage(theFormat: gxFormat; thePage: gxShape): OSErr; C;
  2456. FUNCTION Forward_GXPrintPage(theFormat: gxFormat; thePage: gxShape): OSErr; C;
  2457. TYPE
  2458.     GXSetupImageDataProcPtr = ProcPtr;  { FUNCTION GXSetupImageData(imageData: UNIV Ptr): OSErr; }
  2459.     GXSetupImageDataUPP = UniversalProcPtr;
  2460.  
  2461. CONST
  2462.     uppGXSetupImageDataProcInfo = $000000E1; { FUNCTION (4 byte param): 2 byte result; }
  2463.  
  2464. FUNCTION NewGXSetupImageDataProc(userRoutine: GXSetupImageDataProcPtr): GXSetupImageDataUPP;
  2465.     {$IFC NOT GENERATINGCFM }
  2466.     INLINE $2E9F;
  2467.     {$ENDC}
  2468.  
  2469. FUNCTION CallGXSetupImageDataProc(imageData: UNIV Ptr; userRoutine: GXSetupImageDataUPP): OSErr;
  2470.     {$IFC NOT GENERATINGCFM}
  2471.     INLINE $205F, $4E90;
  2472.     {$ENDC}
  2473.     
  2474. TYPE
  2475.     GXSetupImageDataProc = GXSetupImageDataUPP;
  2476.  
  2477.  
  2478. FUNCTION Send_GXSetupImageData(imageData: UNIV Ptr): OSErr; C;
  2479. FUNCTION Forward_GXSetupImageData(imageData: UNIV Ptr): OSErr; C;
  2480. TYPE
  2481.     GXImageJobProcPtr = ProcPtr;  { FUNCTION GXImageJob(theSpoolFile: gxSpoolFile; VAR closeOptions: LONGINT): OSErr; }
  2482.     GXImageJobUPP = UniversalProcPtr;
  2483.  
  2484. CONST
  2485.     uppGXImageJobProcInfo = $000003E1; { FUNCTION (4 byte param, 4 byte param): 2 byte result; }
  2486.  
  2487. FUNCTION NewGXImageJobProc(userRoutine: GXImageJobProcPtr): GXImageJobUPP;
  2488.     {$IFC NOT GENERATINGCFM }
  2489.     INLINE $2E9F;
  2490.     {$ENDC}
  2491.  
  2492. FUNCTION CallGXImageJobProc(theSpoolFile: gxSpoolFile; VAR closeOptions: LONGINT; userRoutine: GXImageJobUPP): OSErr;
  2493.     {$IFC NOT GENERATINGCFM}
  2494.     INLINE $205F, $4E90;
  2495.     {$ENDC}
  2496.     
  2497. TYPE
  2498.     GXImageJobProc = GXImageJobUPP;
  2499.  
  2500.  
  2501. FUNCTION Send_GXImageJob(theSpoolFile: gxSpoolFile; VAR closeOptions: LONGINT): OSErr; C;
  2502. FUNCTION Forward_GXImageJob(theSpoolFile: gxSpoolFile; VAR closeOptions: LONGINT): OSErr; C;
  2503. TYPE
  2504.     GXImageDocumentProcPtr = ProcPtr;  { FUNCTION GXImageDocument(theSpoolFile: gxSpoolFile; imageData: UNIV Ptr): OSErr; }
  2505.     GXImageDocumentUPP = UniversalProcPtr;
  2506.  
  2507. CONST
  2508.     uppGXImageDocumentProcInfo = $000003E1; { FUNCTION (4 byte param, 4 byte param): 2 byte result; }
  2509.  
  2510. FUNCTION NewGXImageDocumentProc(userRoutine: GXImageDocumentProcPtr): GXImageDocumentUPP;
  2511.     {$IFC NOT GENERATINGCFM }
  2512.     INLINE $2E9F;
  2513.     {$ENDC}
  2514.  
  2515. FUNCTION CallGXImageDocumentProc(theSpoolFile: gxSpoolFile; imageData: UNIV Ptr; userRoutine: GXImageDocumentUPP): OSErr;
  2516.     {$IFC NOT GENERATINGCFM}
  2517.     INLINE $205F, $4E90;
  2518.     {$ENDC}
  2519.     
  2520. TYPE
  2521.     GXImageDocumentProc = GXImageDocumentUPP;
  2522.  
  2523.  
  2524. FUNCTION Send_GXImageDocument(theSpoolFile: gxSpoolFile; imageData: UNIV Ptr): OSErr; C;
  2525. FUNCTION Forward_GXImageDocument(theSpoolFile: gxSpoolFile; imageData: UNIV Ptr): OSErr; C;
  2526. TYPE
  2527.     GXImagePageProcPtr = ProcPtr;  { FUNCTION GXImagePage(theSpoolFile: gxSpoolFile; pageNumber: LONGINT; theFormat: gxFormat; imageData: UNIV Ptr): OSErr; }
  2528.     GXImagePageUPP = UniversalProcPtr;
  2529.  
  2530. CONST
  2531.     uppGXImagePageProcInfo = $00003FE1; { FUNCTION (4 byte param, 4 byte param, 4 byte param, 4 byte param): 2 byte result; }
  2532.  
  2533. FUNCTION NewGXImagePageProc(userRoutine: GXImagePageProcPtr): GXImagePageUPP;
  2534.     {$IFC NOT GENERATINGCFM }
  2535.     INLINE $2E9F;
  2536.     {$ENDC}
  2537.  
  2538. FUNCTION CallGXImagePageProc(theSpoolFile: gxSpoolFile; pageNumber: LONGINT; theFormat: gxFormat; imageData: UNIV Ptr; userRoutine: GXImagePageUPP): OSErr;
  2539.     {$IFC NOT GENERATINGCFM}
  2540.     INLINE $205F, $4E90;
  2541.     {$ENDC}
  2542.     
  2543. TYPE
  2544.     GXImagePageProc = GXImagePageUPP;
  2545.  
  2546.  
  2547. FUNCTION Send_GXImagePage(theSpoolFile: gxSpoolFile; pageNumber: LONGINT; theFormat: gxFormat; imageData: UNIV Ptr): OSErr; C;
  2548. FUNCTION Forward_GXImagePage(theSpoolFile: gxSpoolFile; pageNumber: LONGINT; theFormat: gxFormat; imageData: UNIV Ptr): OSErr; C;
  2549. TYPE
  2550.     GXRenderPageProcPtr = ProcPtr;  { FUNCTION GXRenderPage(theFormat: gxFormat; thePage: gxShape; VAR pageInfo: gxPageInfoRecord; imageData: UNIV Ptr): OSErr; }
  2551.     GXRenderPageUPP = UniversalProcPtr;
  2552.  
  2553. CONST
  2554.     uppGXRenderPageProcInfo = $00003FE1; { FUNCTION (4 byte param, 4 byte param, 4 byte param, 4 byte param): 2 byte result; }
  2555.  
  2556. FUNCTION NewGXRenderPageProc(userRoutine: GXRenderPageProcPtr): GXRenderPageUPP;
  2557.     {$IFC NOT GENERATINGCFM }
  2558.     INLINE $2E9F;
  2559.     {$ENDC}
  2560.  
  2561. FUNCTION CallGXRenderPageProc(theFormat: gxFormat; thePage: gxShape; VAR pageInfo: gxPageInfoRecord; imageData: UNIV Ptr; userRoutine: GXRenderPageUPP): OSErr;
  2562.     {$IFC NOT GENERATINGCFM}
  2563.     INLINE $205F, $4E90;
  2564.     {$ENDC}
  2565.     
  2566. TYPE
  2567.     GXRenderPageProc = GXRenderPageUPP;
  2568.  
  2569.  
  2570. FUNCTION Send_GXRenderPage(theFormat: gxFormat; thePage: gxShape; VAR pageInfo: gxPageInfoRecord; imageData: UNIV Ptr): OSErr; C;
  2571. FUNCTION Forward_GXRenderPage(theFormat: gxFormat; thePage: gxShape; VAR pageInfo: gxPageInfoRecord; imageData: UNIV Ptr): OSErr; C;
  2572. TYPE
  2573.     GXCreateImageFileProcPtr = ProcPtr;  { FUNCTION GXCreateImageFile(pFileSpec: FSSpecPtr; imageFileOptions: LONGINT; VAR theImageFile: LONGINT): OSErr; }
  2574.     GXCreateImageFileUPP = UniversalProcPtr;
  2575.  
  2576. CONST
  2577.     uppGXCreateImageFileProcInfo = $00000FE1; { FUNCTION (4 byte param, 4 byte param, 4 byte param): 2 byte result; }
  2578.  
  2579. FUNCTION NewGXCreateImageFileProc(userRoutine: GXCreateImageFileProcPtr): GXCreateImageFileUPP;
  2580.     {$IFC NOT GENERATINGCFM }
  2581.     INLINE $2E9F;
  2582.     {$ENDC}
  2583.  
  2584. FUNCTION CallGXCreateImageFileProc(pFileSpec: FSSpecPtr; imageFileOptions: LONGINT; VAR theImageFile: LONGINT; userRoutine: GXCreateImageFileUPP): OSErr;
  2585.     {$IFC NOT GENERATINGCFM}
  2586.     INLINE $205F, $4E90;
  2587.     {$ENDC}
  2588.     
  2589. TYPE
  2590.     GXCreateImageFileProc = GXCreateImageFileUPP;
  2591.  
  2592.  
  2593. FUNCTION Send_GXCreateImageFile(pFileSpec: FSSpecPtr; imageFileOptions: LONGINT; VAR theImageFile: LONGINT): OSErr; C;
  2594. FUNCTION Forward_GXCreateImageFile(pFileSpec: FSSpecPtr; imageFileOptions: LONGINT; VAR theImageFile: LONGINT): OSErr; C;
  2595. TYPE
  2596.     GXOpenConnectionProcPtr = ProcPtr;  { FUNCTION GXOpenConnection: OSErr; }
  2597.     GXOpenConnectionUPP = UniversalProcPtr;
  2598.  
  2599. CONST
  2600.     uppGXOpenConnectionProcInfo = $00000021; { FUNCTION : 2 byte result; }
  2601.  
  2602. FUNCTION NewGXOpenConnectionProc(userRoutine: GXOpenConnectionProcPtr): GXOpenConnectionUPP;
  2603.     {$IFC NOT GENERATINGCFM }
  2604.     INLINE $2E9F;
  2605.     {$ENDC}
  2606.  
  2607. FUNCTION CallGXOpenConnectionProc(userRoutine: GXOpenConnectionUPP): OSErr;
  2608.     {$IFC NOT GENERATINGCFM}
  2609.     INLINE $205F, $4E90;
  2610.     {$ENDC}
  2611.     
  2612. TYPE
  2613.     GXOpenConnectionProc = GXOpenConnectionUPP;
  2614.  
  2615.  
  2616. FUNCTION Send_GXOpenConnection: OSErr; C;
  2617. FUNCTION Forward_GXOpenConnection: OSErr; C;
  2618. TYPE
  2619.     GXCloseConnectionProcPtr = ProcPtr;  { FUNCTION GXCloseConnection: OSErr; }
  2620.     GXCloseConnectionUPP = UniversalProcPtr;
  2621.  
  2622. CONST
  2623.     uppGXCloseConnectionProcInfo = $00000021; { FUNCTION : 2 byte result; }
  2624.  
  2625. FUNCTION NewGXCloseConnectionProc(userRoutine: GXCloseConnectionProcPtr): GXCloseConnectionUPP;
  2626.     {$IFC NOT GENERATINGCFM }
  2627.     INLINE $2E9F;
  2628.     {$ENDC}
  2629.  
  2630. FUNCTION CallGXCloseConnectionProc(userRoutine: GXCloseConnectionUPP): OSErr;
  2631.     {$IFC NOT GENERATINGCFM}
  2632.     INLINE $205F, $4E90;
  2633.     {$ENDC}
  2634.     
  2635. TYPE
  2636.     GXCloseConnectionProc = GXCloseConnectionUPP;
  2637.  
  2638.  
  2639. FUNCTION Send_GXCloseConnection: OSErr; C;
  2640. FUNCTION Forward_GXCloseConnection: OSErr; C;
  2641. TYPE
  2642.     GXStartSendPageProcPtr = ProcPtr;  { FUNCTION GXStartSendPage(theFormat: gxFormat): OSErr; }
  2643.     GXStartSendPageUPP = UniversalProcPtr;
  2644.  
  2645. CONST
  2646.     uppGXStartSendPageProcInfo = $000000E1; { FUNCTION (4 byte param): 2 byte result; }
  2647.  
  2648. FUNCTION NewGXStartSendPageProc(userRoutine: GXStartSendPageProcPtr): GXStartSendPageUPP;
  2649.     {$IFC NOT GENERATINGCFM }
  2650.     INLINE $2E9F;
  2651.     {$ENDC}
  2652.  
  2653. FUNCTION CallGXStartSendPageProc(theFormat: gxFormat; userRoutine: GXStartSendPageUPP): OSErr;
  2654.     {$IFC NOT GENERATINGCFM}
  2655.     INLINE $205F, $4E90;
  2656.     {$ENDC}
  2657.     
  2658. TYPE
  2659.     GXStartSendPageProc = GXStartSendPageUPP;
  2660.  
  2661.  
  2662. FUNCTION Send_GXStartSendPage(theFormat: gxFormat): OSErr; C;
  2663. FUNCTION Forward_GXStartSendPage(theFormat: gxFormat): OSErr; C;
  2664. TYPE
  2665.     GXFinishSendPageProcPtr = ProcPtr;  { FUNCTION GXFinishSendPage: OSErr; }
  2666.     GXFinishSendPageUPP = UniversalProcPtr;
  2667.  
  2668. CONST
  2669.     uppGXFinishSendPageProcInfo = $00000021; { FUNCTION : 2 byte result; }
  2670.  
  2671. FUNCTION NewGXFinishSendPageProc(userRoutine: GXFinishSendPageProcPtr): GXFinishSendPageUPP;
  2672.     {$IFC NOT GENERATINGCFM }
  2673.     INLINE $2E9F;
  2674.     {$ENDC}
  2675.  
  2676. FUNCTION CallGXFinishSendPageProc(userRoutine: GXFinishSendPageUPP): OSErr;
  2677.     {$IFC NOT GENERATINGCFM}
  2678.     INLINE $205F, $4E90;
  2679.     {$ENDC}
  2680.     
  2681. TYPE
  2682.     GXFinishSendPageProc = GXFinishSendPageUPP;
  2683.  
  2684.  
  2685. FUNCTION Send_GXFinishSendPage: OSErr; C;
  2686. FUNCTION Forward_GXFinishSendPage: OSErr; C;
  2687. TYPE
  2688.     GXWriteDataProcPtr = ProcPtr;  { FUNCTION GXWriteData(data: Ptr; length: LONGINT): OSErr; }
  2689.     GXWriteDataUPP = UniversalProcPtr;
  2690.  
  2691. CONST
  2692.     uppGXWriteDataProcInfo = $000003E1; { FUNCTION (4 byte param, 4 byte param): 2 byte result; }
  2693.  
  2694. FUNCTION NewGXWriteDataProc(userRoutine: GXWriteDataProcPtr): GXWriteDataUPP;
  2695.     {$IFC NOT GENERATINGCFM }
  2696.     INLINE $2E9F;
  2697.     {$ENDC}
  2698.  
  2699. FUNCTION CallGXWriteDataProc(data: Ptr; length: LONGINT; userRoutine: GXWriteDataUPP): OSErr;
  2700.     {$IFC NOT GENERATINGCFM}
  2701.     INLINE $205F, $4E90;
  2702.     {$ENDC}
  2703.     
  2704. TYPE
  2705.     GXWriteDataProc = GXWriteDataUPP;
  2706.  
  2707.  
  2708. FUNCTION Send_GXWriteData(data: Ptr; length: LONGINT): OSErr; C;
  2709. FUNCTION Forward_GXWriteData(data: Ptr; length: LONGINT): OSErr; C;
  2710. TYPE
  2711.     GXBufferDataProcPtr = ProcPtr;  { FUNCTION GXBufferData(data: Ptr; length: LONGINT; bufferOptions: LONGINT): OSErr; }
  2712.     GXBufferDataUPP = UniversalProcPtr;
  2713.  
  2714. CONST
  2715.     uppGXBufferDataProcInfo = $00000FE1; { FUNCTION (4 byte param, 4 byte param, 4 byte param): 2 byte result; }
  2716.  
  2717. FUNCTION NewGXBufferDataProc(userRoutine: GXBufferDataProcPtr): GXBufferDataUPP;
  2718.     {$IFC NOT GENERATINGCFM }
  2719.     INLINE $2E9F;
  2720.     {$ENDC}
  2721.  
  2722. FUNCTION CallGXBufferDataProc(data: Ptr; length: LONGINT; bufferOptions: LONGINT; userRoutine: GXBufferDataUPP): OSErr;
  2723.     {$IFC NOT GENERATINGCFM}
  2724.     INLINE $205F, $4E90;
  2725.     {$ENDC}
  2726.     
  2727. TYPE
  2728.     GXBufferDataProc = GXBufferDataUPP;
  2729.  
  2730.  
  2731. FUNCTION Send_GXBufferData(data: Ptr; length: LONGINT; bufferOptions: LONGINT): OSErr; C;
  2732. FUNCTION Forward_GXBufferData(data: Ptr; length: LONGINT; bufferOptions: LONGINT): OSErr; C;
  2733. TYPE
  2734.     GXDumpBufferProcPtr = ProcPtr;  { FUNCTION GXDumpBuffer(VAR theBuffer: gxPrintingBuffer): OSErr; }
  2735.     GXDumpBufferUPP = UniversalProcPtr;
  2736.  
  2737. CONST
  2738.     uppGXDumpBufferProcInfo = $000000E1; { FUNCTION (4 byte param): 2 byte result; }
  2739.  
  2740. FUNCTION NewGXDumpBufferProc(userRoutine: GXDumpBufferProcPtr): GXDumpBufferUPP;
  2741.     {$IFC NOT GENERATINGCFM }
  2742.     INLINE $2E9F;
  2743.     {$ENDC}
  2744.  
  2745. FUNCTION CallGXDumpBufferProc(VAR theBuffer: gxPrintingBuffer; userRoutine: GXDumpBufferUPP): OSErr;
  2746.     {$IFC NOT GENERATINGCFM}
  2747.     INLINE $205F, $4E90;
  2748.     {$ENDC}
  2749.     
  2750. TYPE
  2751.     GXDumpBufferProc = GXDumpBufferUPP;
  2752.  
  2753.  
  2754. FUNCTION Send_GXDumpBuffer(VAR theBuffer: gxPrintingBuffer): OSErr; C;
  2755. FUNCTION Forward_GXDumpBuffer(VAR theBuffer: gxPrintingBuffer): OSErr; C;
  2756. TYPE
  2757.     GXFreeBufferProcPtr = ProcPtr;  { FUNCTION GXFreeBuffer(VAR theBuffer: gxPrintingBuffer): OSErr; }
  2758.     GXFreeBufferUPP = UniversalProcPtr;
  2759.  
  2760. CONST
  2761.     uppGXFreeBufferProcInfo = $000000E1; { FUNCTION (4 byte param): 2 byte result; }
  2762.  
  2763. FUNCTION NewGXFreeBufferProc(userRoutine: GXFreeBufferProcPtr): GXFreeBufferUPP;
  2764.     {$IFC NOT GENERATINGCFM }
  2765.     INLINE $2E9F;
  2766.     {$ENDC}
  2767.  
  2768. FUNCTION CallGXFreeBufferProc(VAR theBuffer: gxPrintingBuffer; userRoutine: GXFreeBufferUPP): OSErr;
  2769.     {$IFC NOT GENERATINGCFM}
  2770.     INLINE $205F, $4E90;
  2771.     {$ENDC}
  2772.     
  2773. TYPE
  2774.     GXFreeBufferProc = GXFreeBufferUPP;
  2775.  
  2776.  
  2777. FUNCTION Send_GXFreeBuffer(VAR theBuffer: gxPrintingBuffer): OSErr; C;
  2778. FUNCTION Forward_GXFreeBuffer(VAR theBuffer: gxPrintingBuffer): OSErr; C;
  2779. TYPE
  2780.     GXCheckStatusProcPtr = ProcPtr;  { FUNCTION GXCheckStatus(data: Ptr; length: LONGINT; statusType: LONGINT; owner: gxOwnerSignature): OSErr; }
  2781.     GXCheckStatusUPP = UniversalProcPtr;
  2782.  
  2783. CONST
  2784.     uppGXCheckStatusProcInfo = $00003FE1; { FUNCTION (4 byte param, 4 byte param, 4 byte param, 4 byte param): 2 byte result; }
  2785.  
  2786. FUNCTION NewGXCheckStatusProc(userRoutine: GXCheckStatusProcPtr): GXCheckStatusUPP;
  2787.     {$IFC NOT GENERATINGCFM }
  2788.     INLINE $2E9F;
  2789.     {$ENDC}
  2790.  
  2791. FUNCTION CallGXCheckStatusProc(data: Ptr; length: LONGINT; statusType: LONGINT; owner: gxOwnerSignature; userRoutine: GXCheckStatusUPP): OSErr;
  2792.     {$IFC NOT GENERATINGCFM}
  2793.     INLINE $205F, $4E90;
  2794.     {$ENDC}
  2795.     
  2796. TYPE
  2797.     GXCheckStatusProc = GXCheckStatusUPP;
  2798.  
  2799.  
  2800. FUNCTION Send_GXCheckStatus(data: Ptr; length: LONGINT; statusType: LONGINT; owner: gxOwnerSignature): OSErr; C;
  2801. FUNCTION Forward_GXCheckStatus(data: Ptr; length: LONGINT; statusType: LONGINT; owner: gxOwnerSignature): OSErr; C;
  2802. TYPE
  2803.     GXGetDeviceStatusProcPtr = ProcPtr;  { FUNCTION GXGetDeviceStatus(cmdData: Ptr; cmdSize: LONGINT; responseData: Ptr; VAR responseSize: LONGINT; VAR termination: Str255): OSErr; }
  2804.     GXGetDeviceStatusUPP = UniversalProcPtr;
  2805.  
  2806. CONST
  2807.     uppGXGetDeviceStatusProcInfo = $0000FFE1; { FUNCTION (4 byte param, 4 byte param, 4 byte param, 4 byte param, 4 byte param): 2 byte result; }
  2808.  
  2809. FUNCTION NewGXGetDeviceStatusProc(userRoutine: GXGetDeviceStatusProcPtr): GXGetDeviceStatusUPP;
  2810.     {$IFC NOT GENERATINGCFM }
  2811.     INLINE $2E9F;
  2812.     {$ENDC}
  2813.  
  2814. FUNCTION CallGXGetDeviceStatusProc(cmdData: Ptr; cmdSize: LONGINT; responseData: Ptr; VAR responseSize: LONGINT; VAR termination: Str255; userRoutine: GXGetDeviceStatusUPP): OSErr;
  2815.     {$IFC NOT GENERATINGCFM}
  2816.     INLINE $205F, $4E90;
  2817.     {$ENDC}
  2818.     
  2819. TYPE
  2820.     GXGetDeviceStatusProc = GXGetDeviceStatusUPP;
  2821.  
  2822.  
  2823. FUNCTION Send_GXGetDeviceStatus(cmdData: Ptr; cmdSize: LONGINT; responseData: Ptr; VAR responseSize: LONGINT; VAR termination: Str255): OSErr; C;
  2824. FUNCTION Forward_GXGetDeviceStatus(cmdData: Ptr; cmdSize: LONGINT; responseData: Ptr; VAR responseSize: LONGINT; VAR termination: Str255): OSErr; C;
  2825. TYPE
  2826.     GXFetchTaggedDataProcPtr = ProcPtr;  { FUNCTION GXFetchTaggedData(theType: ResType; id: LONGINT; VAR dataHdl: Handle; owner: gxOwnerSignature): OSErr; }
  2827.     GXFetchTaggedDataUPP = UniversalProcPtr;
  2828.  
  2829. CONST
  2830.     uppGXFetchTaggedDataProcInfo = $00003FE1; { FUNCTION (4 byte param, 4 byte param, 4 byte param, 4 byte param): 2 byte result; }
  2831.  
  2832. FUNCTION NewGXFetchTaggedDataProc(userRoutine: GXFetchTaggedDataProcPtr): GXFetchTaggedDataUPP;
  2833.     {$IFC NOT GENERATINGCFM }
  2834.     INLINE $2E9F;
  2835.     {$ENDC}
  2836.  
  2837. FUNCTION CallGXFetchTaggedDataProc(theType: ResType; id: LONGINT; VAR dataHdl: Handle; owner: gxOwnerSignature; userRoutine: GXFetchTaggedDataUPP): OSErr;
  2838.     {$IFC NOT GENERATINGCFM}
  2839.     INLINE $205F, $4E90;
  2840.     {$ENDC}
  2841.     
  2842. TYPE
  2843.     GXFetchTaggedDataProc = GXFetchTaggedDataUPP;
  2844.  
  2845.  
  2846. FUNCTION Send_GXFetchTaggedData(theType: ResType; id: LONGINT; VAR dataHdl: Handle; owner: gxOwnerSignature): OSErr; C;
  2847. FUNCTION Forward_GXFetchTaggedData(theType: ResType; id: LONGINT; VAR dataHdl: Handle; owner: gxOwnerSignature): OSErr; C;
  2848. TYPE
  2849.     GXGetDTPMenuListProcPtr = ProcPtr;  { FUNCTION GXGetDTPMenuList(menuHdl: MenuHandle): OSErr; }
  2850.     GXGetDTPMenuListUPP = UniversalProcPtr;
  2851.  
  2852. CONST
  2853.     uppGXGetDTPMenuListProcInfo = $000000E1; { FUNCTION (4 byte param): 2 byte result; }
  2854.  
  2855. FUNCTION NewGXGetDTPMenuListProc(userRoutine: GXGetDTPMenuListProcPtr): GXGetDTPMenuListUPP;
  2856.     {$IFC NOT GENERATINGCFM }
  2857.     INLINE $2E9F;
  2858.     {$ENDC}
  2859.  
  2860. FUNCTION CallGXGetDTPMenuListProc(menuHdl: MenuHandle; userRoutine: GXGetDTPMenuListUPP): OSErr;
  2861.     {$IFC NOT GENERATINGCFM}
  2862.     INLINE $205F, $4E90;
  2863.     {$ENDC}
  2864.     
  2865. TYPE
  2866.     GXGetDTPMenuListProc = GXGetDTPMenuListUPP;
  2867.  
  2868.  
  2869. FUNCTION Send_GXGetDTPMenuList(menuHdl: MenuHandle): OSErr; C;
  2870. FUNCTION Forward_GXGetDTPMenuList(menuHdl: MenuHandle): OSErr; C;
  2871. TYPE
  2872.     GXDTPMenuSelectProcPtr = ProcPtr;  { FUNCTION GXDTPMenuSelect(id: LONGINT): OSErr; }
  2873.     GXDTPMenuSelectUPP = UniversalProcPtr;
  2874.  
  2875. CONST
  2876.     uppGXDTPMenuSelectProcInfo = $000000E1; { FUNCTION (4 byte param): 2 byte result; }
  2877.  
  2878. FUNCTION NewGXDTPMenuSelectProc(userRoutine: GXDTPMenuSelectProcPtr): GXDTPMenuSelectUPP;
  2879.     {$IFC NOT GENERATINGCFM }
  2880.     INLINE $2E9F;
  2881.     {$ENDC}
  2882.  
  2883. FUNCTION CallGXDTPMenuSelectProc(id: LONGINT; userRoutine: GXDTPMenuSelectUPP): OSErr;
  2884.     {$IFC NOT GENERATINGCFM}
  2885.     INLINE $205F, $4E90;
  2886.     {$ENDC}
  2887.     
  2888. TYPE
  2889.     GXDTPMenuSelectProc = GXDTPMenuSelectUPP;
  2890.  
  2891.  
  2892. FUNCTION Send_GXDTPMenuSelect(id: LONGINT): OSErr; C;
  2893. FUNCTION Forward_GXDTPMenuSelect(id: LONGINT): OSErr; C;
  2894. TYPE
  2895.     GXHandleAlertFilterProcPtr = ProcPtr;  { FUNCTION GXHandleAlertFilter(theJob: gxJob; VAR pStatusRec: gxStatusRecord; pDialog: DialogPtr; VAR theEvent: EventRecord; VAR itemHit: INTEGER; VAR returnImmed: BOOLEAN): OSErr; }
  2896.     GXHandleAlertFilterUPP = UniversalProcPtr;
  2897.  
  2898. CONST
  2899.     uppGXHandleAlertFilterProcInfo = $0003FFE1; { FUNCTION (4 byte param, 4 byte param, 4 byte param, 4 byte param, 4 byte param, 4 byte param): 2 byte result; }
  2900.  
  2901. FUNCTION NewGXHandleAlertFilterProc(userRoutine: GXHandleAlertFilterProcPtr): GXHandleAlertFilterUPP;
  2902.     {$IFC NOT GENERATINGCFM }
  2903.     INLINE $2E9F;
  2904.     {$ENDC}
  2905.  
  2906. FUNCTION CallGXHandleAlertFilterProc(theJob: gxJob; VAR pStatusRec: gxStatusRecord; pDialog: DialogPtr; VAR theEvent: EventRecord; VAR itemHit: INTEGER; VAR returnImmed: BOOLEAN; userRoutine: GXHandleAlertFilterUPP): OSErr;
  2907.     {$IFC NOT GENERATINGCFM}
  2908.     INLINE $205F, $4E90;
  2909.     {$ENDC}
  2910.     
  2911. TYPE
  2912.     GXHandleAlertFilterProc = GXHandleAlertFilterUPP;
  2913.  
  2914.  
  2915. FUNCTION Send_GXHandleAlertFilter(theJob: gxJob; VAR pStatusRec: gxStatusRecord; pDialog: DialogPtr; VAR theEvent: EventRecord; VAR itemHit: INTEGER; VAR returnImmed: BOOLEAN): OSErr; C;
  2916. FUNCTION Forward_GXHandleAlertFilter(theJob: gxJob; VAR pStatusRec: gxStatusRecord; pDialog: DialogPtr; VAR theEvent: EventRecord; VAR itemHit: INTEGER; VAR returnImmed: BOOLEAN): OSErr; C;
  2917. TYPE
  2918.     GXJobFormatModeQueryProcPtr = ProcPtr;  { FUNCTION GXJobFormatModeQuery(theQuery: gxQueryType; srcData: UNIV Ptr; dstData: UNIV Ptr): OSErr; }
  2919.     GXJobFormatModeQueryUPP = UniversalProcPtr;
  2920.  
  2921. CONST
  2922.     uppGXJobFormatModeQueryProcInfo = $00000FE1; { FUNCTION (4 byte param, 4 byte param, 4 byte param): 2 byte result; }
  2923.  
  2924. FUNCTION NewGXJobFormatModeQueryProc(userRoutine: GXJobFormatModeQueryProcPtr): GXJobFormatModeQueryUPP;
  2925.     {$IFC NOT GENERATINGCFM }
  2926.     INLINE $2E9F;
  2927.     {$ENDC}
  2928.  
  2929. FUNCTION CallGXJobFormatModeQueryProc(theQuery: gxQueryType; srcData: UNIV Ptr; dstData: UNIV Ptr; userRoutine: GXJobFormatModeQueryUPP): OSErr;
  2930.     {$IFC NOT GENERATINGCFM}
  2931.     INLINE $205F, $4E90;
  2932.     {$ENDC}
  2933.     
  2934. TYPE
  2935.     GXJobFormatModeQueryProc = GXJobFormatModeQueryUPP;
  2936.  
  2937.  
  2938. FUNCTION Send_GXJobFormatModeQuery(theQuery: gxQueryType; srcData: UNIV Ptr; dstData: UNIV Ptr): OSErr; C;
  2939. FUNCTION Forward_GXJobFormatModeQuery(theQuery: gxQueryType; srcData: UNIV Ptr; dstData: UNIV Ptr): OSErr; C;
  2940. TYPE
  2941.     GXWriteStatusToDTPWindowProcPtr = ProcPtr;  { FUNCTION GXWriteStatusToDTPWindow(VAR pStatusRec: gxStatusRecord; VAR pDisplay: gxDisplayRecord): OSErr; }
  2942.     GXWriteStatusToDTPWindowUPP = UniversalProcPtr;
  2943.  
  2944. CONST
  2945.     uppGXWriteStatusToDTPWindowProcInfo = $000003E1; { FUNCTION (4 byte param, 4 byte param): 2 byte result; }
  2946.  
  2947. FUNCTION NewGXWriteStatusToDTPWindowProc(userRoutine: GXWriteStatusToDTPWindowProcPtr): GXWriteStatusToDTPWindowUPP;
  2948.     {$IFC NOT GENERATINGCFM }
  2949.     INLINE $2E9F;
  2950.     {$ENDC}
  2951.  
  2952. FUNCTION CallGXWriteStatusToDTPWindowProc(VAR pStatusRec: gxStatusRecord; VAR pDisplay: gxDisplayRecord; userRoutine: GXWriteStatusToDTPWindowUPP): OSErr;
  2953.     {$IFC NOT GENERATINGCFM}
  2954.     INLINE $205F, $4E90;
  2955.     {$ENDC}
  2956.     
  2957. TYPE
  2958.     GXWriteStatusToDTPWindowProc = GXWriteStatusToDTPWindowUPP;
  2959.  
  2960.  
  2961. FUNCTION Send_GXWriteStatusToDTPWindow(VAR pStatusRec: gxStatusRecord; VAR pDisplay: gxDisplayRecord): OSErr; C;
  2962. FUNCTION Forward_GXWriteStatusToDTPWindow(VAR pStatusRec: gxStatusRecord; VAR pDisplay: gxDisplayRecord): OSErr; C;
  2963. TYPE
  2964.     GXInitializeStatusAlertProcPtr = ProcPtr;  { FUNCTION GXInitializeStatusAlert(VAR pStatusRec: gxStatusRecord; VAR pDialog: DialogPtr): OSErr; }
  2965.     GXInitializeStatusAlertUPP = UniversalProcPtr;
  2966.  
  2967. CONST
  2968.     uppGXInitializeStatusAlertProcInfo = $000003E1; { FUNCTION (4 byte param, 4 byte param): 2 byte result; }
  2969.  
  2970. FUNCTION NewGXInitializeStatusAlertProc(userRoutine: GXInitializeStatusAlertProcPtr): GXInitializeStatusAlertUPP;
  2971.     {$IFC NOT GENERATINGCFM }
  2972.     INLINE $2E9F;
  2973.     {$ENDC}
  2974.  
  2975. FUNCTION CallGXInitializeStatusAlertProc(VAR pStatusRec: gxStatusRecord; VAR pDialog: DialogPtr; userRoutine: GXInitializeStatusAlertUPP): OSErr;
  2976.     {$IFC NOT GENERATINGCFM}
  2977.     INLINE $205F, $4E90;
  2978.     {$ENDC}
  2979.     
  2980. TYPE
  2981.     GXInitializeStatusAlertProc = GXInitializeStatusAlertUPP;
  2982.  
  2983.  
  2984. FUNCTION Send_GXInitializeStatusAlert(VAR pStatusRec: gxStatusRecord; VAR pDialog: DialogPtr): OSErr; C;
  2985. FUNCTION Forward_GXInitializeStatusAlert(VAR pStatusRec: gxStatusRecord; VAR pDialog: DialogPtr): OSErr; C;
  2986. TYPE
  2987.     GXHandleAlertStatusProcPtr = ProcPtr;  { FUNCTION GXHandleAlertStatus(VAR pStatusRec: gxStatusRecord): OSErr; }
  2988.     GXHandleAlertStatusUPP = UniversalProcPtr;
  2989.  
  2990. CONST
  2991.     uppGXHandleAlertStatusProcInfo = $000000E1; { FUNCTION (4 byte param): 2 byte result; }
  2992.  
  2993. FUNCTION NewGXHandleAlertStatusProc(userRoutine: GXHandleAlertStatusProcPtr): GXHandleAlertStatusUPP;
  2994.     {$IFC NOT GENERATINGCFM }
  2995.     INLINE $2E9F;
  2996.     {$ENDC}
  2997.  
  2998. FUNCTION CallGXHandleAlertStatusProc(VAR pStatusRec: gxStatusRecord; userRoutine: GXHandleAlertStatusUPP): OSErr;
  2999.     {$IFC NOT GENERATINGCFM}
  3000.     INLINE $205F, $4E90;
  3001.     {$ENDC}
  3002.     
  3003. TYPE
  3004.     GXHandleAlertStatusProc = GXHandleAlertStatusUPP;
  3005.  
  3006.  
  3007. FUNCTION Send_GXHandleAlertStatus(VAR pStatusRec: gxStatusRecord): OSErr; C;
  3008. FUNCTION Forward_GXHandleAlertStatus(VAR pStatusRec: gxStatusRecord): OSErr; C;
  3009. TYPE
  3010.     GXHandleAlertEventProcPtr = ProcPtr;  { FUNCTION GXHandleAlertEvent(VAR pStatusRec: gxStatusRecord; pDialog: DialogPtr; VAR theEvent: EventRecord; VAR response: INTEGER): OSErr; }
  3011.     GXHandleAlertEventUPP = UniversalProcPtr;
  3012.  
  3013. CONST
  3014.     uppGXHandleAlertEventProcInfo = $00003FE1; { FUNCTION (4 byte param, 4 byte param, 4 byte param, 4 byte param): 2 byte result; }
  3015.  
  3016. FUNCTION NewGXHandleAlertEventProc(userRoutine: GXHandleAlertEventProcPtr): GXHandleAlertEventUPP;
  3017.     {$IFC NOT GENERATINGCFM }
  3018.     INLINE $2E9F;
  3019.     {$ENDC}
  3020.  
  3021. FUNCTION CallGXHandleAlertEventProc(VAR pStatusRec: gxStatusRecord; pDialog: DialogPtr; VAR theEvent: EventRecord; VAR response: INTEGER; userRoutine: GXHandleAlertEventUPP): OSErr;
  3022.     {$IFC NOT GENERATINGCFM}
  3023.     INLINE $205F, $4E90;
  3024.     {$ENDC}
  3025.     
  3026. TYPE
  3027.     GXHandleAlertEventProc = GXHandleAlertEventUPP;
  3028.  
  3029.  
  3030. FUNCTION Send_GXHandleAlertEvent(VAR pStatusRec: gxStatusRecord; pDialog: DialogPtr; VAR theEvent: EventRecord; VAR response: INTEGER): OSErr; C;
  3031. FUNCTION Forward_GXHandleAlertEvent(VAR pStatusRec: gxStatusRecord; pDialog: DialogPtr; VAR theEvent: EventRecord; VAR response: INTEGER): OSErr; C;
  3032. TYPE
  3033.     GXCleanupStartJobProcPtr = ProcPtr;  { PROCEDURE GXCleanupStartJob; }
  3034.     GXCleanupStartJobUPP = UniversalProcPtr;
  3035.  
  3036. CONST
  3037.     uppGXCleanupStartJobProcInfo = $00000001; { PROCEDURE ; }
  3038.  
  3039. FUNCTION NewGXCleanupStartJobProc(userRoutine: GXCleanupStartJobProcPtr): GXCleanupStartJobUPP;
  3040.     {$IFC NOT GENERATINGCFM }
  3041.     INLINE $2E9F;
  3042.     {$ENDC}
  3043.  
  3044. PROCEDURE CallGXCleanupStartJobProc(userRoutine: GXCleanupStartJobUPP);
  3045.     {$IFC NOT GENERATINGCFM}
  3046.     INLINE $205F, $4E90;
  3047.     {$ENDC}
  3048.     
  3049. TYPE
  3050.     GXCleanupStartJobProc = GXCleanupStartJobUPP;
  3051.  
  3052.  
  3053. PROCEDURE Send_GXCleanupStartJob; C;
  3054. PROCEDURE Forward_GXCleanupStartJob; C;
  3055. TYPE
  3056.     GXCleanupStartPageProcPtr = ProcPtr;  { PROCEDURE GXCleanupStartPage; }
  3057.     GXCleanupStartPageUPP = UniversalProcPtr;
  3058.  
  3059. CONST
  3060.     uppGXCleanupStartPageProcInfo = $00000001; { PROCEDURE ; }
  3061.  
  3062. FUNCTION NewGXCleanupStartPageProc(userRoutine: GXCleanupStartPageProcPtr): GXCleanupStartPageUPP;
  3063.     {$IFC NOT GENERATINGCFM }
  3064.     INLINE $2E9F;
  3065.     {$ENDC}
  3066.  
  3067. PROCEDURE CallGXCleanupStartPageProc(userRoutine: GXCleanupStartPageUPP);
  3068.     {$IFC NOT GENERATINGCFM}
  3069.     INLINE $205F, $4E90;
  3070.     {$ENDC}
  3071.     
  3072. TYPE
  3073.     GXCleanupStartPageProc = GXCleanupStartPageUPP;
  3074.  
  3075.  
  3076. PROCEDURE Send_GXCleanupStartPage; C;
  3077. PROCEDURE Forward_GXCleanupStartPage; C;
  3078. TYPE
  3079.     GXCleanupOpenConnectionProcPtr = ProcPtr;  { PROCEDURE GXCleanupOpenConnection; }
  3080.     GXCleanupOpenConnectionUPP = UniversalProcPtr;
  3081.  
  3082. CONST
  3083.     uppGXCleanupOpenConnectionProcInfo = $00000001; { PROCEDURE ; }
  3084.  
  3085. FUNCTION NewGXCleanupOpenConnectionProc(userRoutine: GXCleanupOpenConnectionProcPtr): GXCleanupOpenConnectionUPP;
  3086.     {$IFC NOT GENERATINGCFM }
  3087.     INLINE $2E9F;
  3088.     {$ENDC}
  3089.  
  3090. PROCEDURE CallGXCleanupOpenConnectionProc(userRoutine: GXCleanupOpenConnectionUPP);
  3091.     {$IFC NOT GENERATINGCFM}
  3092.     INLINE $205F, $4E90;
  3093.     {$ENDC}
  3094.     
  3095. TYPE
  3096.     GXCleanupOpenConnectionProc = GXCleanupOpenConnectionUPP;
  3097.  
  3098.  
  3099. PROCEDURE Send_GXCleanupOpenConnection; C;
  3100. PROCEDURE Forward_GXCleanupOpenConnection; C;
  3101. TYPE
  3102.     GXCleanupStartSendPageProcPtr = ProcPtr;  { PROCEDURE GXCleanupStartSendPage; }
  3103.     GXCleanupStartSendPageUPP = UniversalProcPtr;
  3104.  
  3105. CONST
  3106.     uppGXCleanupStartSendPageProcInfo = $00000001; { PROCEDURE ; }
  3107.  
  3108. FUNCTION NewGXCleanupStartSendPageProc(userRoutine: GXCleanupStartSendPageProcPtr): GXCleanupStartSendPageUPP;
  3109.     {$IFC NOT GENERATINGCFM }
  3110.     INLINE $2E9F;
  3111.     {$ENDC}
  3112.  
  3113. PROCEDURE CallGXCleanupStartSendPageProc(userRoutine: GXCleanupStartSendPageUPP);
  3114.     {$IFC NOT GENERATINGCFM}
  3115.     INLINE $205F, $4E90;
  3116.     {$ENDC}
  3117.     
  3118. TYPE
  3119.     GXCleanupStartSendPageProc = GXCleanupStartSendPageUPP;
  3120.  
  3121.  
  3122. PROCEDURE Send_GXCleanupStartSendPage; C;
  3123. PROCEDURE Forward_GXCleanupStartSendPage; C;
  3124. TYPE
  3125.     GXDefaultDesktopPrinterProcPtr = ProcPtr;  { FUNCTION GXDefaultDesktopPrinter(VAR dtpName: Str31): OSErr; }
  3126.     GXDefaultDesktopPrinterUPP = UniversalProcPtr;
  3127.  
  3128. CONST
  3129.     uppGXDefaultDesktopPrinterProcInfo = $000000E1; { FUNCTION (4 byte param): 2 byte result; }
  3130.  
  3131. FUNCTION NewGXDefaultDesktopPrinterProc(userRoutine: GXDefaultDesktopPrinterProcPtr): GXDefaultDesktopPrinterUPP;
  3132.     {$IFC NOT GENERATINGCFM }
  3133.     INLINE $2E9F;
  3134.     {$ENDC}
  3135.  
  3136. FUNCTION CallGXDefaultDesktopPrinterProc(VAR dtpName: Str31; userRoutine: GXDefaultDesktopPrinterUPP): OSErr;
  3137.     {$IFC NOT GENERATINGCFM}
  3138.     INLINE $205F, $4E90;
  3139.     {$ENDC}
  3140.     
  3141. TYPE
  3142.     GXDefaultDesktopPrinterProc = GXDefaultDesktopPrinterUPP;
  3143.  
  3144.  
  3145. FUNCTION Send_GXDefaultDesktopPrinter(VAR dtpName: Str31): OSErr; C;
  3146. FUNCTION Forward_GXDefaultDesktopPrinter(VAR dtpName: Str31): OSErr; C;
  3147. TYPE
  3148.     GXCaptureOutputDeviceProcPtr = ProcPtr;  { FUNCTION GXCaptureOutputDevice(capture: BOOLEAN): OSErr; }
  3149.     GXCaptureOutputDeviceUPP = UniversalProcPtr;
  3150.  
  3151. CONST
  3152.     uppGXCaptureOutputDeviceProcInfo = $00000061; { FUNCTION (1 byte param): 2 byte result; }
  3153.  
  3154. FUNCTION NewGXCaptureOutputDeviceProc(userRoutine: GXCaptureOutputDeviceProcPtr): GXCaptureOutputDeviceUPP;
  3155.     {$IFC NOT GENERATINGCFM }
  3156.     INLINE $2E9F;
  3157.     {$ENDC}
  3158.  
  3159. FUNCTION CallGXCaptureOutputDeviceProc(capture: BOOLEAN; userRoutine: GXCaptureOutputDeviceUPP): OSErr;
  3160.     {$IFC NOT GENERATINGCFM}
  3161.     INLINE $205F, $4E90;
  3162.     {$ENDC}
  3163.     
  3164. TYPE
  3165.     GXCaptureOutputDeviceProc = GXCaptureOutputDeviceUPP;
  3166.  
  3167.  
  3168. FUNCTION Send_GXCaptureOutputDevice(capture: BOOLEAN): OSErr; C;
  3169. FUNCTION Forward_GXCaptureOutputDevice(capture: BOOLEAN): OSErr; C;
  3170. TYPE
  3171.     GXOpenConnectionRetryProcPtr = ProcPtr;  { FUNCTION GXOpenConnectionRetry(theType: ResType; aVoid: UNIV Ptr; VAR retryopenPtr: BOOLEAN; anErr: OSErr): OSErr; }
  3172.     GXOpenConnectionRetryUPP = UniversalProcPtr;
  3173.  
  3174. CONST
  3175.     uppGXOpenConnectionRetryProcInfo = $00002FE1; { FUNCTION (4 byte param, 4 byte param, 4 byte param, 2 byte param): 2 byte result; }
  3176.  
  3177. FUNCTION NewGXOpenConnectionRetryProc(userRoutine: GXOpenConnectionRetryProcPtr): GXOpenConnectionRetryUPP;
  3178.     {$IFC NOT GENERATINGCFM }
  3179.     INLINE $2E9F;
  3180.     {$ENDC}
  3181.  
  3182. FUNCTION CallGXOpenConnectionRetryProc(theType: ResType; aVoid: UNIV Ptr; VAR retryopenPtr: BOOLEAN; anErr: OSErr; userRoutine: GXOpenConnectionRetryUPP): OSErr;
  3183.     {$IFC NOT GENERATINGCFM}
  3184.     INLINE $205F, $4E90;
  3185.     {$ENDC}
  3186.     
  3187. TYPE
  3188.     GXOpenConnectionRetryProc = GXOpenConnectionRetryUPP;
  3189.  
  3190.  
  3191. FUNCTION Send_GXOpenConnectionRetry(theType: ResType; aVoid: UNIV Ptr; VAR retryopenPtr: BOOLEAN; anErr: OSErr): OSErr; C;
  3192. FUNCTION Forward_GXOpenConnectionRetry(theType: ResType; aVoid: UNIV Ptr; VAR retryopenPtr: BOOLEAN; anErr: OSErr): OSErr; C;
  3193. TYPE
  3194.     GXExamineSpoolFileProcPtr = ProcPtr;  { FUNCTION GXExamineSpoolFile(theSpoolFile: gxSpoolFile): OSErr; }
  3195.     GXExamineSpoolFileUPP = UniversalProcPtr;
  3196.  
  3197. CONST
  3198.     uppGXExamineSpoolFileProcInfo = $000000E1; { FUNCTION (4 byte param): 2 byte result; }
  3199.  
  3200. FUNCTION NewGXExamineSpoolFileProc(userRoutine: GXExamineSpoolFileProcPtr): GXExamineSpoolFileUPP;
  3201.     {$IFC NOT GENERATINGCFM }
  3202.     INLINE $2E9F;
  3203.     {$ENDC}
  3204.  
  3205. FUNCTION CallGXExamineSpoolFileProc(theSpoolFile: gxSpoolFile; userRoutine: GXExamineSpoolFileUPP): OSErr;
  3206.     {$IFC NOT GENERATINGCFM}
  3207.     INLINE $205F, $4E90;
  3208.     {$ENDC}
  3209.     
  3210. TYPE
  3211.     GXExamineSpoolFileProc = GXExamineSpoolFileUPP;
  3212.  
  3213.  
  3214. FUNCTION Send_GXExamineSpoolFile(theSpoolFile: gxSpoolFile): OSErr; C;
  3215. FUNCTION Forward_GXExamineSpoolFile(theSpoolFile: gxSpoolFile): OSErr; C;
  3216. TYPE
  3217.     GXFinishSendPlaneProcPtr = ProcPtr;  { FUNCTION GXFinishSendPlane: OSErr; }
  3218.     GXFinishSendPlaneUPP = UniversalProcPtr;
  3219.  
  3220. CONST
  3221.     uppGXFinishSendPlaneProcInfo = $00000021; { FUNCTION : 2 byte result; }
  3222.  
  3223. FUNCTION NewGXFinishSendPlaneProc(userRoutine: GXFinishSendPlaneProcPtr): GXFinishSendPlaneUPP;
  3224.     {$IFC NOT GENERATINGCFM }
  3225.     INLINE $2E9F;
  3226.     {$ENDC}
  3227.  
  3228. FUNCTION CallGXFinishSendPlaneProc(userRoutine: GXFinishSendPlaneUPP): OSErr;
  3229.     {$IFC NOT GENERATINGCFM}
  3230.     INLINE $205F, $4E90;
  3231.     {$ENDC}
  3232.     
  3233. TYPE
  3234.     GXFinishSendPlaneProc = GXFinishSendPlaneUPP;
  3235.  
  3236.  
  3237. FUNCTION Send_GXFinishSendPlane: OSErr; C;
  3238. FUNCTION Forward_GXFinishSendPlane: OSErr; C;
  3239. TYPE
  3240.     GXDoesPaperFitProcPtr = ProcPtr;  { FUNCTION GXDoesPaperFit(whichTray: gxTrayIndex; paper: gxPaperType; VAR fits: BOOLEAN): OSErr; }
  3241.     GXDoesPaperFitUPP = UniversalProcPtr;
  3242.  
  3243. CONST
  3244.     uppGXDoesPaperFitProcInfo = $00000FE1; { FUNCTION (4 byte param, 4 byte param, 4 byte param): 2 byte result; }
  3245.  
  3246. FUNCTION NewGXDoesPaperFitProc(userRoutine: GXDoesPaperFitProcPtr): GXDoesPaperFitUPP;
  3247.     {$IFC NOT GENERATINGCFM }
  3248.     INLINE $2E9F;
  3249.     {$ENDC}
  3250.  
  3251. FUNCTION CallGXDoesPaperFitProc(whichTray: gxTrayIndex; paper: gxPaperType; VAR fits: BOOLEAN; userRoutine: GXDoesPaperFitUPP): OSErr;
  3252.     {$IFC NOT GENERATINGCFM}
  3253.     INLINE $205F, $4E90;
  3254.     {$ENDC}
  3255.     
  3256. TYPE
  3257.     GXDoesPaperFitProc = GXDoesPaperFitUPP;
  3258.  
  3259.  
  3260. FUNCTION Send_GXDoesPaperFit(whichTray: gxTrayIndex; paper: gxPaperType; VAR fits: BOOLEAN): OSErr; C;
  3261. FUNCTION Forward_GXDoesPaperFit(whichTray: gxTrayIndex; paper: gxPaperType; VAR fits: BOOLEAN): OSErr; C;
  3262. TYPE
  3263.     GXChooserMessageProcPtr = ProcPtr;  { FUNCTION GXChooserMessage(message: LONGINT; caller: LONGINT; objName: StringPtr; zoneName: StringPtr; theList: ListHandle; p2: LONGINT): OSErr; }
  3264.     GXChooserMessageUPP = UniversalProcPtr;
  3265.  
  3266. CONST
  3267.     uppGXChooserMessageProcInfo = $0003FFE1; { FUNCTION (4 byte param, 4 byte param, 4 byte param, 4 byte param, 4 byte param, 4 byte param): 2 byte result; }
  3268.  
  3269. FUNCTION NewGXChooserMessageProc(userRoutine: GXChooserMessageProcPtr): GXChooserMessageUPP;
  3270.     {$IFC NOT GENERATINGCFM }
  3271.     INLINE $2E9F;
  3272.     {$ENDC}
  3273.  
  3274. FUNCTION CallGXChooserMessageProc(message: LONGINT; caller: LONGINT; objName: StringPtr; zoneName: StringPtr; theList: ListHandle; p2: LONGINT; userRoutine: GXChooserMessageUPP): OSErr;
  3275.     {$IFC NOT GENERATINGCFM}
  3276.     INLINE $205F, $4E90;
  3277.     {$ENDC}
  3278.     
  3279. TYPE
  3280.     GXChooserMessageProc = GXChooserMessageUPP;
  3281.  
  3282.  
  3283. FUNCTION Send_GXChooserMessage(message: LONGINT; caller: LONGINT; objName: StringPtr; zoneName: StringPtr; theList: ListHandle; p2: LONGINT): OSErr; C;
  3284. FUNCTION Forward_GXChooserMessage(message: LONGINT; caller: LONGINT; objName: StringPtr; zoneName: StringPtr; theList: ListHandle; p2: LONGINT): OSErr; C;
  3285. TYPE
  3286.     GXFindPrinterProfileProcPtr = ProcPtr;  { FUNCTION GXFindPrinterProfile(thePrinter: gxPrinter; searchData: UNIV Ptr; index: LONGINT; VAR returnedProfile: gxColorProfile; VAR numProfiles: LONGINT): OSErr; }
  3287.     GXFindPrinterProfileUPP = UniversalProcPtr;
  3288.  
  3289. CONST
  3290.     uppGXFindPrinterProfileProcInfo = $0000FFE1; { FUNCTION (4 byte param, 4 byte param, 4 byte param, 4 byte param, 4 byte param): 2 byte result; }
  3291.  
  3292. FUNCTION NewGXFindPrinterProfileProc(userRoutine: GXFindPrinterProfileProcPtr): GXFindPrinterProfileUPP;
  3293.     {$IFC NOT GENERATINGCFM }
  3294.     INLINE $2E9F;
  3295.     {$ENDC}
  3296.  
  3297. FUNCTION CallGXFindPrinterProfileProc(thePrinter: gxPrinter; searchData: UNIV Ptr; index: LONGINT; VAR returnedProfile: gxColorProfile; VAR numProfiles: LONGINT; userRoutine: GXFindPrinterProfileUPP): OSErr;
  3298.     {$IFC NOT GENERATINGCFM}
  3299.     INLINE $205F, $4E90;
  3300.     {$ENDC}
  3301.     
  3302. TYPE
  3303.     GXFindPrinterProfileProc = GXFindPrinterProfileUPP;
  3304.  
  3305.  
  3306. FUNCTION Send_GXFindPrinterProfile(thePrinter: gxPrinter; searchData: UNIV Ptr; index: LONGINT; VAR returnedProfile: gxColorProfile; VAR numProfiles: LONGINT): OSErr; C;
  3307. FUNCTION Forward_GXFindPrinterProfile(thePrinter: gxPrinter; searchData: UNIV Ptr; index: LONGINT; VAR returnedProfile: gxColorProfile; VAR numProfiles: LONGINT): OSErr; C;
  3308. TYPE
  3309.     GXFindFormatProfileProcPtr = ProcPtr;  { FUNCTION GXFindFormatProfile(theFormat: gxFormat; searchData: UNIV Ptr; index: LONGINT; VAR returnedProfile: gxColorProfile; VAR numProfiles: LONGINT): OSErr; }
  3310.     GXFindFormatProfileUPP = UniversalProcPtr;
  3311.  
  3312. CONST
  3313.     uppGXFindFormatProfileProcInfo = $0000FFE1; { FUNCTION (4 byte param, 4 byte param, 4 byte param, 4 byte param, 4 byte param): 2 byte result; }
  3314.  
  3315. FUNCTION NewGXFindFormatProfileProc(userRoutine: GXFindFormatProfileProcPtr): GXFindFormatProfileUPP;
  3316.     {$IFC NOT GENERATINGCFM }
  3317.     INLINE $2E9F;
  3318.     {$ENDC}
  3319.  
  3320. FUNCTION CallGXFindFormatProfileProc(theFormat: gxFormat; searchData: UNIV Ptr; index: LONGINT; VAR returnedProfile: gxColorProfile; VAR numProfiles: LONGINT; userRoutine: GXFindFormatProfileUPP): OSErr;
  3321.     {$IFC NOT GENERATINGCFM}
  3322.     INLINE $205F, $4E90;
  3323.     {$ENDC}
  3324.     
  3325. TYPE
  3326.     GXFindFormatProfileProc = GXFindFormatProfileUPP;
  3327.  
  3328.  
  3329. FUNCTION Send_GXFindFormatProfile(theFormat: gxFormat; searchData: UNIV Ptr; index: LONGINT; VAR returnedProfile: gxColorProfile; VAR numProfiles: LONGINT): OSErr; C;
  3330. FUNCTION Forward_GXFindFormatProfile(theFormat: gxFormat; searchData: UNIV Ptr; index: LONGINT; VAR returnedProfile: gxColorProfile; VAR numProfiles: LONGINT): OSErr; C;
  3331. TYPE
  3332.     GXSetPrinterProfileProcPtr = ProcPtr;  { FUNCTION GXSetPrinterProfile(thePrinter: gxPrinter; oldProfile: gxColorProfile; newProfile: gxColorProfile): OSErr; }
  3333.     GXSetPrinterProfileUPP = UniversalProcPtr;
  3334.  
  3335. CONST
  3336.     uppGXSetPrinterProfileProcInfo = $00000FE1; { FUNCTION (4 byte param, 4 byte param, 4 byte param): 2 byte result; }
  3337.  
  3338. FUNCTION NewGXSetPrinterProfileProc(userRoutine: GXSetPrinterProfileProcPtr): GXSetPrinterProfileUPP;
  3339.     {$IFC NOT GENERATINGCFM }
  3340.     INLINE $2E9F;
  3341.     {$ENDC}
  3342.  
  3343. FUNCTION CallGXSetPrinterProfileProc(thePrinter: gxPrinter; oldProfile: gxColorProfile; newProfile: gxColorProfile; userRoutine: GXSetPrinterProfileUPP): OSErr;
  3344.     {$IFC NOT GENERATINGCFM}
  3345.     INLINE $205F, $4E90;
  3346.     {$ENDC}
  3347.     
  3348. TYPE
  3349.     GXSetPrinterProfileProc = GXSetPrinterProfileUPP;
  3350.  
  3351.  
  3352. FUNCTION Send_GXSetPrinterProfile(thePrinter: gxPrinter; oldProfile: gxColorProfile; newProfile: gxColorProfile): OSErr; C;
  3353. FUNCTION Forward_GXSetPrinterProfile(thePrinter: gxPrinter; oldProfile: gxColorProfile; newProfile: gxColorProfile): OSErr; C;
  3354. TYPE
  3355.     GXSetFormatProfileProcPtr = ProcPtr;  { FUNCTION GXSetFormatProfile(theFormat: gxFormat; oldProfile: gxColorProfile; newProfile: gxColorProfile): OSErr; }
  3356.     GXSetFormatProfileUPP = UniversalProcPtr;
  3357.  
  3358. CONST
  3359.     uppGXSetFormatProfileProcInfo = $00000FE1; { FUNCTION (4 byte param, 4 byte param, 4 byte param): 2 byte result; }
  3360.  
  3361. FUNCTION NewGXSetFormatProfileProc(userRoutine: GXSetFormatProfileProcPtr): GXSetFormatProfileUPP;
  3362.     {$IFC NOT GENERATINGCFM }
  3363.     INLINE $2E9F;
  3364.     {$ENDC}
  3365.  
  3366. FUNCTION CallGXSetFormatProfileProc(theFormat: gxFormat; oldProfile: gxColorProfile; newProfile: gxColorProfile; userRoutine: GXSetFormatProfileUPP): OSErr;
  3367.     {$IFC NOT GENERATINGCFM}
  3368.     INLINE $205F, $4E90;
  3369.     {$ENDC}
  3370.     
  3371. TYPE
  3372.     GXSetFormatProfileProc = GXSetFormatProfileUPP;
  3373.  
  3374.  
  3375. FUNCTION Send_GXSetFormatProfile(theFormat: gxFormat; oldProfile: gxColorProfile; newProfile: gxColorProfile): OSErr; C;
  3376. FUNCTION Forward_GXSetFormatProfile(theFormat: gxFormat; oldProfile: gxColorProfile; newProfile: gxColorProfile): OSErr; C;
  3377. TYPE
  3378.     GXHandleAltDestinationProcPtr = ProcPtr;  { FUNCTION GXHandleAltDestination(VAR userCancels: BOOLEAN): OSErr; }
  3379.     GXHandleAltDestinationUPP = UniversalProcPtr;
  3380.  
  3381. CONST
  3382.     uppGXHandleAltDestinationProcInfo = $000000E1; { FUNCTION (4 byte param): 2 byte result; }
  3383.  
  3384. FUNCTION NewGXHandleAltDestinationProc(userRoutine: GXHandleAltDestinationProcPtr): GXHandleAltDestinationUPP;
  3385.     {$IFC NOT GENERATINGCFM }
  3386.     INLINE $2E9F;
  3387.     {$ENDC}
  3388.  
  3389. FUNCTION CallGXHandleAltDestinationProc(VAR userCancels: BOOLEAN; userRoutine: GXHandleAltDestinationUPP): OSErr;
  3390.     {$IFC NOT GENERATINGCFM}
  3391.     INLINE $205F, $4E90;
  3392.     {$ENDC}
  3393.     
  3394. TYPE
  3395.     GXHandleAltDestinationProc = GXHandleAltDestinationUPP;
  3396.  
  3397.  
  3398. FUNCTION Send_GXHandleAltDestination(VAR userCancels: BOOLEAN): OSErr; C;
  3399. FUNCTION Forward_GXHandleAltDestination(VAR userCancels: BOOLEAN): OSErr; C;
  3400. TYPE
  3401.     GXSetupPageImageDataProcPtr = ProcPtr;  { FUNCTION GXSetupPageImageData(theFormat: gxFormat; thePage: gxShape; imageData: UNIV Ptr): OSErr; }
  3402.     GXSetupPageImageDataUPP = UniversalProcPtr;
  3403.  
  3404. CONST
  3405.     uppGXSetupPageImageDataProcInfo = $00000FE1; { FUNCTION (4 byte param, 4 byte param, 4 byte param): 2 byte result; }
  3406.  
  3407. FUNCTION NewGXSetupPageImageDataProc(userRoutine: GXSetupPageImageDataProcPtr): GXSetupPageImageDataUPP;
  3408.     {$IFC NOT GENERATINGCFM }
  3409.     INLINE $2E9F;
  3410.     {$ENDC}
  3411.  
  3412. FUNCTION CallGXSetupPageImageDataProc(theFormat: gxFormat; thePage: gxShape; imageData: UNIV Ptr; userRoutine: GXSetupPageImageDataUPP): OSErr;
  3413.     {$IFC NOT GENERATINGCFM}
  3414.     INLINE $205F, $4E90;
  3415.     {$ENDC}
  3416.     
  3417. TYPE
  3418.     GXSetupPageImageDataProc = GXSetupPageImageDataUPP;
  3419.  
  3420.  
  3421. FUNCTION Send_GXSetupPageImageData(theFormat: gxFormat; thePage: gxShape; imageData: UNIV Ptr): OSErr; C;
  3422. FUNCTION Forward_GXSetupPageImageData(theFormat: gxFormat; thePage: gxShape; imageData: UNIV Ptr): OSErr; C;
  3423. {******************************************************************
  3424.                     Start of old "GXPrintingErrors.h/a/p" interface file.
  3425.             *******************************************************************}
  3426.  
  3427. CONST
  3428.     gxPrintingResultBase        = -510;                            {First QuickDraw GX printing error code.}
  3429.  
  3430. {RESULT CODES FOR QUICKDRAW GX PRINTING OPERATIONS}
  3431.     gxAioTimeout                = 0+(gxPrintingResultBase);        {-510 : Timeout condition occurred during operation}
  3432.     gxAioBadRqstState            = 0+(gxPrintingResultBase - 1);    {-511 : Async I/O request in invalid state for operation}
  3433.     gxAioBadConn                = 0+(gxPrintingResultBase - 2);    {-512 : Invalid Async I/O connection refnum}
  3434.     gxAioInvalidXfer            = 0+(gxPrintingResultBase - 3);    {-513 : Read data transfer structure contained bad values}
  3435.     gxAioNoRqstBlks                = 0+(gxPrintingResultBase - 4);    {-514 : No available request blocks to process request}
  3436.     gxAioNoDataXfer                = 0+(gxPrintingResultBase - 5);    {-515 : Data transfer structure pointer not specified}
  3437.     gxAioTooManyAutos            = 0+(gxPrintingResultBase - 6);    {-516 : Auto status request already active}
  3438.     gxAioNoAutoStat                = 0+(gxPrintingResultBase - 7);    {-517 : Connection not configured for auto status}
  3439.     gxAioBadRqstID                = 0+(gxPrintingResultBase - 8);    {-518 : Invalid I/O request identifier}
  3440.     gxAioCantKill                = 0+(gxPrintingResultBase - 9);    {-519 : Comm. protocol doesn't support I/O term}
  3441.     gxAioAlreadyExists            = 0+(gxPrintingResultBase - 10); {-520 : Protocol spec. data already specified}
  3442.     gxAioCantFind                = 0+(gxPrintingResultBase - 11); {-521 : Protocol spec. data does not exist}
  3443.     gxAioDeviceDisconn            = 0+(gxPrintingResultBase - 12); {-522 : Machine disconnected from printer}
  3444.     gxAioNotImplemented            = 0+(gxPrintingResultBase - 13); {-523 : Function not implemented}
  3445.     gxAioOpenPending            = 0+(gxPrintingResultBase - 14); {-524 : Opening a connection for protocol, but another open pending}
  3446.     gxAioNoProtocolData            = 0+(gxPrintingResultBase - 15); {-525 : No protocol specific data specified in request}
  3447.     gxAioRqstKilled                = 0+(gxPrintingResultBase - 16); {-526 : I/O request was terminated}
  3448.     gxBadBaudRate                = 0+(gxPrintingResultBase - 17); {-527 : Invalid baud rate specified}
  3449.     gxBadParity                    = 0+(gxPrintingResultBase - 18); {-528 : Invalid parity specified}
  3450.     gxBadStopBits                = 0+(gxPrintingResultBase - 19); {-529 : Invalid stop bits specified}
  3451.     gxBadDataBits                = 0+(gxPrintingResultBase - 20); {-530 : Invalid data bits specified}
  3452.     gxBadPrinterName            = 0+(gxPrintingResultBase - 21); {-531 : Bad printer name specified}
  3453.     gxAioBadMsgType                = 0+(gxPrintingResultBase - 22); {-532 : Bad masType field in transfer info structure}
  3454.     gxAioCantFindDevice            = 0+(gxPrintingResultBase - 23); {-533 : Cannot locate target device}
  3455.     gxAioOutOfSeq                = 0+(gxPrintingResultBase - 24); {-534 : Non-atomic SCSI requests submitted out of sequence}
  3456.     gxPrIOAbortErr                = 0+(gxPrintingResultBase - 25); {-535 : I/O operation aborted}
  3457.     gxPrUserAbortErr            = 0+(gxPrintingResultBase - 26); {-536 : User aborted}
  3458.     gxCantAddPanelsNowErr        = 0+(gxPrintingResultBase - 27); {-537 : Can only add panels during driver switch or dialog setup}
  3459.     gxBadxdtlKeyErr                = 0+(gxPrintingResultBase - 28); {-538 : Unknown key for xdtl - must be radiobutton, etc}
  3460.     gxXdtlItemOutOfRangeErr        = 0+(gxPrintingResultBase - 29); {-539 : Referenced item does not belong to panel}
  3461.     gxNoActionButtonErr            = 0+(gxPrintingResultBase - 30); {-540 : Action button is nil}
  3462.     gxTitlesTooLongErr            = 0+(gxPrintingResultBase - 31); {-541 : Length of buttons exceeds alert maximum width}
  3463.     gxUnknownAlertVersionErr    = 0+(gxPrintingResultBase - 32); {-542 : Bad version for printing alerts}
  3464.     gxGBBufferTooSmallErr        = 0+(gxPrintingResultBase - 33); {-543 : Buffer too small.}
  3465.     gxInvalidPenTable            = 0+(gxPrintingResultBase - 34); {-544 : Invalid vector driver pen table.}
  3466.     gxIncompletePrintFileErr    = 0+(gxPrintingResultBase - 35); {-545 : Print file was not completely spooled}
  3467.     gxCrashedPrintFileErr        = 0+(gxPrintingResultBase - 36); {-546 : Print file is corrupted}
  3468.     gxInvalidPrintFileVersion    = 0+(gxPrintingResultBase - 37); {-547 : Print file is incompatible with current QuickDraw GX version}
  3469.     gxSegmentLoadFailedErr        = 0+(gxPrintingResultBase - 38); {-548 : Segment loader error}
  3470.     gxExtensionNotFoundErr        = 0+(gxPrintingResultBase - 39); {-549 : Requested printing extension could not be found}
  3471.     gxDriverVersionErr            = 0+(gxPrintingResultBase - 40); {-550 : Driver too new for current version of QuickDraw GX}
  3472.     gxImagingSystemVersionErr    = 0+(gxPrintingResultBase - 41); {-551 : Imaging system too new for current version of QuickDraw GX}
  3473.     gxFlattenVersionTooNew        = 0+(gxPrintingResultBase - 42); {-552 : Flattened object format too new for current version of QDGX}
  3474.     gxPaperTypeNotFound            = 0+(gxPrintingResultBase - 43); {-553 : Requested papertype could not be found}
  3475.     gxNoSuchPTGroup                = 0+(gxPrintingResultBase - 44); {-554 : Requested papertype group could not be found}
  3476.     gxNotEnoughPrinterMemory    = 0+(gxPrintingResultBase - 45); {-555 : Printer does not have enough memory for fonts in document}
  3477.     gxDuplicatePanelNameErr        = 0+(gxPrintingResultBase - 46); {-556 : Attempt to add more than 10 panels with the same name}
  3478.     gxExtensionVersionErr        = 0+(gxPrintingResultBase - 47); {-557 : Extension too new for current version of QuickDraw GX}
  3479.  
  3480.  
  3481. {$ALIGN RESET}
  3482. {$POP}
  3483.  
  3484. {$SETC UsingIncludes := GXPrintingIncludes}
  3485.  
  3486. {$ENDC} {__GXPRINTING__}
  3487.  
  3488. {$IFC NOT UsingIncludes}
  3489.  END.
  3490. {$ENDC}
  3491.